summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-02-09 17:38:36 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-02-12 10:41:11 +0100
commit67dcc26d208ca5578f08c3c78cb254418c24e9ec (patch)
treedcc65393c997a911c41604c85a59cef328db9b07 /drivers/of
parent29d5325a14ab49375476e3a6442ff40a008a8c9a (diff)
downloadop-kernel-dev-67dcc26d208ca5578f08c3c78cb254418c24e9ec.zip
op-kernel-dev-67dcc26d208ca5578f08c3c78cb254418c24e9ec.tar.gz
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/of')
-rw-r--r--drivers/of/property.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/property.c b/drivers/of/property.c
index 36ed84e..f46828e 100644
--- a/drivers/of/property.c
+++ b/drivers/of/property.c
@@ -977,11 +977,11 @@ static int of_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode,
return 0;
}
-static void *
+static const void *
of_fwnode_device_get_match_data(const struct fwnode_handle *fwnode,
const struct device *dev)
{
- return (void *)of_device_get_match_data(dev);
+ return of_device_get_match_data(dev);
}
const struct fwnode_operations of_fwnode_ops = {
OpenPOWER on IntegriCloud