2023-08-30 17:31:07 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
|
|
* Device physical location support
|
|
|
|
*
|
|
|
|
* Author: Won Chung <wonchung@google.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/device.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_ACPI
|
2023-10-24 12:59:35 +02:00
|
|
|
bool dev_add_physical_location(struct device *dev);
|
2023-08-30 17:31:07 +02:00
|
|
|
extern const struct attribute_group dev_attr_physical_location_group;
|
|
|
|
#else
|
|
|
|
static inline bool dev_add_physical_location(struct device *dev) { return false; };
|
|
|
|
static const struct attribute_group dev_attr_physical_location_group = {};
|
|
|
|
#endif
|