xref: /linux/drivers/base/physical_location.h (revision 40d269c000bda9fcd276a0412a9cebd3f6e344c5)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Device physical location support
4  *
5  * Author: Won Chung <wonchung@google.com>
6  */
7 
8 #include <linux/device.h>
9 
10 #ifdef CONFIG_ACPI
11 bool dev_add_physical_location(struct device *dev);
12 extern const struct attribute_group dev_attr_physical_location_group;
13 #else
14 static inline bool dev_add_physical_location(struct device *dev) { return false; };
15 static const struct attribute_group dev_attr_physical_location_group = {};
16 #endif
17