mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
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:
parent
191e6bcf50
commit
9ba2353b2c
|
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user