aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/property.h
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 /include/linux/property.h
parentACPI / bus: Rename acpi_get_match_data() to acpi_device_get_match_data() (diff)
downloadlinux-dev-67dcc26d208ca5578f08c3c78cb254418c24e9ec.tar.xz
linux-dev-67dcc26d208ca5578f08c3c78cb254418c24e9ec.zip
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 'include/linux/property.h')
-rw-r--r--include/linux/property.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/property.h b/include/linux/property.h
index 769d372c1edf..2eea4b310fc2 100644
--- a/include/linux/property.h
+++ b/include/linux/property.h
@@ -283,7 +283,7 @@ bool device_dma_supported(struct device *dev);
enum dev_dma_attr device_get_dma_attr(struct device *dev);
-void *device_get_match_data(struct device *dev);
+const void *device_get_match_data(struct device *dev);
int device_get_phy_mode(struct device *dev);