diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-02-09 17:38:36 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-02-12 10:41:11 +0100 |
commit | 67dcc26d208ca5578f08c3c78cb254418c24e9ec (patch) | |
tree | dcc65393c997a911c41604c85a59cef328db9b07 /drivers/base | |
parent | 29d5325a14ab49375476e3a6442ff40a008a8c9a (diff) | |
download | linux-67dcc26d208ca5578f08c3c78cb254418c24e9ec.tar.bz2 |
device property: Constify device_get_match_data()
Constify device_get_match_data() as OF and ACPI variants return
constant value.
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
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>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/property.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/base/property.c b/drivers/base/property.c index 302236281d83..8f205f6461ed 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -1410,9 +1410,8 @@ int fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode, } EXPORT_SYMBOL(fwnode_graph_parse_endpoint); -void *device_get_match_data(struct device *dev) +const void *device_get_match_data(struct device *dev) { - return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, - dev); + return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev); } EXPORT_SYMBOL_GPL(device_get_match_data); |