Skip to content

Commit

Permalink
platform: constify properties in platform_device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Feb 10, 2020
1 parent bb6d3fb commit 469e190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/platform_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 469e190

Please sign in to comment.