physical_location.h 476 B

12345678910111213141516
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Device physical location support
  4. *
  5. * Author: Won Chung <[email protected]>
  6. */
  7. #include <linux/device.h>
  8. #ifdef CONFIG_ACPI
  9. extern bool dev_add_physical_location(struct device *dev);
  10. extern const struct attribute_group dev_attr_physical_location_group;
  11. #else
  12. static inline bool dev_add_physical_location(struct device *dev) { return false; };
  13. static const struct attribute_group dev_attr_physical_location_group = {};
  14. #endif