diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2020-02-08 21:44:07 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-11 00:35:39 +0300 |
commit | 469e1906a1b121ecb0c2ef43f28a98fd9d453831 (patch) | |
tree | dd8288568605f5b4ea35796632134a00dd7cf283 /include/linux/platform_device.h | |
parent | bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff) | |
download | linux-469e1906a1b121ecb0c2ef43f28a98fd9d453831.tar.xz |
platform: constify properties in platform_device
Constify 'struct property_entry *properties' in
platform_device. It is always passed around as a pointer const struct.
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20200208184407.1294-2-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/platform_device.h')
-rw-r--r-- | include/linux/platform_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 276a03c24691..8e83c6ff140d 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -89,7 +89,7 @@ struct platform_device_info { size_t size_data; u64 dma_mask; - struct property_entry *properties; + const struct property_entry *properties; }; extern struct platform_device *platform_device_register_full( const struct platform_device_info *pdevinfo); |