Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tomas Winkler and committed by
Greg Kroah-Hartman
469e1906 bb6d3fb3

+1 -1
+1 -1
include/linux/platform_device.h
··· 89 89 size_t size_data; 90 90 u64 dma_mask; 91 91 92 - struct property_entry *properties; 92 + const struct property_entry *properties; 93 93 }; 94 94 extern struct platform_device *platform_device_register_full( 95 95 const struct platform_device_info *pdevinfo);