mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-06 22:05:16 +07:00
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>
This commit is contained in:
parent
bb6d3fb354
commit
469e1906a1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user