diff options
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index e6b98a32495f..64e10746f282 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -56,6 +56,8 @@ static inline acpi_handle acpi_device_handle(struct acpi_device *adev) | |||
56 | #define ACPI_COMPANION_SET(dev, adev) set_primary_fwnode(dev, (adev) ? \ | 56 | #define ACPI_COMPANION_SET(dev, adev) set_primary_fwnode(dev, (adev) ? \ |
57 | acpi_fwnode_handle(adev) : NULL) | 57 | acpi_fwnode_handle(adev) : NULL) |
58 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev)) | 58 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev)) |
59 | #define ACPI_HANDLE_FWNODE(fwnode) \ | ||
60 | acpi_device_handle(to_acpi_device_node(fwnode)) | ||
59 | 61 | ||
60 | static inline struct fwnode_handle *acpi_alloc_fwnode_static(void) | 62 | static inline struct fwnode_handle *acpi_alloc_fwnode_static(void) |
61 | { | 63 | { |
@@ -585,6 +587,7 @@ extern int acpi_nvs_for_each_region(int (*func)(__u64, __u64, void *), | |||
585 | const struct acpi_device_id *acpi_match_device(const struct acpi_device_id *ids, | 587 | const struct acpi_device_id *acpi_match_device(const struct acpi_device_id *ids, |
586 | const struct device *dev); | 588 | const struct device *dev); |
587 | 589 | ||
590 | void *acpi_get_match_data(const struct device *dev); | ||
588 | extern bool acpi_driver_match_device(struct device *dev, | 591 | extern bool acpi_driver_match_device(struct device *dev, |
589 | const struct device_driver *drv); | 592 | const struct device_driver *drv); |
590 | int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); | 593 | int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); |
@@ -627,6 +630,7 @@ int acpi_arch_timer_mem_init(struct arch_timer_mem *timer_mem, int *timer_count) | |||
627 | #define ACPI_COMPANION(dev) (NULL) | 630 | #define ACPI_COMPANION(dev) (NULL) |
628 | #define ACPI_COMPANION_SET(dev, adev) do { } while (0) | 631 | #define ACPI_COMPANION_SET(dev, adev) do { } while (0) |
629 | #define ACPI_HANDLE(dev) (NULL) | 632 | #define ACPI_HANDLE(dev) (NULL) |
633 | #define ACPI_HANDLE_FWNODE(fwnode) (NULL) | ||
630 | #define ACPI_DEVICE_CLASS(_cls, _msk) .cls = (0), .cls_msk = (0), | 634 | #define ACPI_DEVICE_CLASS(_cls, _msk) .cls = (0), .cls_msk = (0), |
631 | 635 | ||
632 | struct fwnode_handle; | 636 | struct fwnode_handle; |
@@ -762,6 +766,11 @@ static inline const struct acpi_device_id *acpi_match_device( | |||
762 | return NULL; | 766 | return NULL; |
763 | } | 767 | } |
764 | 768 | ||
769 | static inline void *acpi_get_match_data(const struct device *dev) | ||
770 | { | ||
771 | return NULL; | ||
772 | } | ||
773 | |||
765 | static inline bool acpi_driver_match_device(struct device *dev, | 774 | static inline bool acpi_driver_match_device(struct device *dev, |
766 | const struct device_driver *drv) | 775 | const struct device_driver *drv) |
767 | { | 776 | { |
@@ -985,6 +994,11 @@ struct acpi_gpio_mapping { | |||
985 | const char *name; | 994 | const char *name; |
986 | const struct acpi_gpio_params *data; | 995 | const struct acpi_gpio_params *data; |
987 | unsigned int size; | 996 | unsigned int size; |
997 | |||
998 | /* Ignore IoRestriction field */ | ||
999 | #define ACPI_GPIO_QUIRK_NO_IO_RESTRICTION BIT(0) | ||
1000 | |||
1001 | unsigned int quirks; | ||
988 | }; | 1002 | }; |
989 | 1003 | ||
990 | #if defined(CONFIG_ACPI) && defined(CONFIG_GPIOLIB) | 1004 | #if defined(CONFIG_ACPI) && defined(CONFIG_GPIOLIB) |