Commit 9ba2353b authored by Michał Mirosław's avatar Michał Mirosław Committed by Sebastian Reichel
Browse files

power: supply: core: allow to constify property lists



Since tables pointed to by power_supply_desc->properties and
->usb_types are not expected to change after registration, mark
the pointers accordingly

Signed-off-by: default avatarMichał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 191e6bcf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -223,9 +223,9 @@ struct power_supply_config {
struct power_supply_desc {
	const char *name;
	enum power_supply_type type;
	enum power_supply_usb_type *usb_types;
	const enum power_supply_usb_type *usb_types;
	size_t num_usb_types;
	enum power_supply_property *properties;
	const enum power_supply_property *properties;
	size_t num_properties;

	/*