From: Michał Mirosław Date: Fri, 3 Apr 2020 20:20:32 +0000 (+0200) Subject: power: supply: core: allow to constify property lists X-Git-Tag: v5.8-rc1~70^2~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ba2353b2cc58ba13f7a7369208107f133f6a27b;p=thirdparty%2Flinux.git 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 Signed-off-by: Sebastian Reichel --- diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index dcd5a71e6c677..6a34df65d4d18 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -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; /*