diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-02-09 10:38:35 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-02-12 04:41:10 -0500 |
commit | 29d5325a14ab49375476e3a6442ff40a008a8c9a (patch) | |
tree | 5796e44cd177ffcb4195f71d84fc0678f18f8c1e | |
parent | 8ff277c5bf87d750a44a656d4f113462493acbfc (diff) |
ACPI / bus: Rename acpi_get_match_data() to acpi_device_get_match_data()
Do the renaming to be consistent with its sibling, i.e.
of_device_get_match_data().
No functional change.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/bus.c | 4 | ||||
-rw-r--r-- | drivers/acpi/property.c | 2 | ||||
-rw-r--r-- | include/linux/acpi.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index ca4af098b1bf..e6285b5ce0d5 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -830,7 +830,7 @@ const struct acpi_device_id *acpi_match_device(const struct acpi_device_id *ids, | |||
830 | } | 830 | } |
831 | EXPORT_SYMBOL_GPL(acpi_match_device); | 831 | EXPORT_SYMBOL_GPL(acpi_match_device); |
832 | 832 | ||
833 | void *acpi_get_match_data(const struct device *dev) | 833 | void *acpi_device_get_match_data(const struct device *dev) |
834 | { | 834 | { |
835 | const struct acpi_device_id *match; | 835 | const struct acpi_device_id *match; |
836 | 836 | ||
@@ -840,7 +840,7 @@ void *acpi_get_match_data(const struct device *dev) | |||
840 | 840 | ||
841 | return (void *)match->driver_data; | 841 | return (void *)match->driver_data; |
842 | } | 842 | } |
843 | EXPORT_SYMBOL_GPL(acpi_get_match_data); | 843 | EXPORT_SYMBOL_GPL(acpi_device_get_match_data); |
844 | 844 | ||
845 | int acpi_match_device_ids(struct acpi_device *device, | 845 | int acpi_match_device_ids(struct acpi_device *device, |
846 | const struct acpi_device_id *ids) | 846 | const struct acpi_device_id *ids) |
diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 466d1503aba0..f9b5fa230a86 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c | |||
@@ -1275,7 +1275,7 @@ static void * | |||
1275 | acpi_fwnode_device_get_match_data(const struct fwnode_handle *fwnode, | 1275 | acpi_fwnode_device_get_match_data(const struct fwnode_handle *fwnode, |
1276 | const struct device *dev) | 1276 | const struct device *dev) |
1277 | { | 1277 | { |
1278 | return acpi_get_match_data(dev); | 1278 | return acpi_device_get_match_data(dev); |
1279 | } | 1279 | } |
1280 | 1280 | ||
1281 | #define DECLARE_ACPI_FWNODE_OPS(ops) \ | 1281 | #define DECLARE_ACPI_FWNODE_OPS(ops) \ |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 64e10746f282..bdf47e0f92e9 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -587,7 +587,7 @@ extern int acpi_nvs_for_each_region(int (*func)(__u64, __u64, void *), | |||
587 | 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, |
588 | const struct device *dev); | 588 | const struct device *dev); |
589 | 589 | ||
590 | void *acpi_get_match_data(const struct device *dev); | 590 | void *acpi_device_get_match_data(const struct device *dev); |
591 | extern bool acpi_driver_match_device(struct device *dev, | 591 | extern bool acpi_driver_match_device(struct device *dev, |
592 | const struct device_driver *drv); | 592 | const struct device_driver *drv); |
593 | int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); | 593 | int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); |
@@ -766,7 +766,7 @@ static inline const struct acpi_device_id *acpi_match_device( | |||
766 | return NULL; | 766 | return NULL; |
767 | } | 767 | } |
768 | 768 | ||
769 | static inline void *acpi_get_match_data(const struct device *dev) | 769 | static inline void *acpi_device_get_match_data(const struct device *dev) |
770 | { | 770 | { |
771 | return NULL; | 771 | return NULL; |
772 | } | 772 | } |