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: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Michał Mirosław 2020-04-03 22:20:32 +02:00 committed by Sebastian Reichel
parent 191e6bcf50
commit 9ba2353b2c

View File

@ -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;
/*