power: bq25890: make property table const
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sun, 3 May 2020 15:21:10 +0000 (17:21 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 3 May 2020 19:50:21 +0000 (21:50 +0200)
Property list should not change, so mark it const.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25890_charger.c

index d44ef48..9e862e2 100644 (file)
@@ -668,7 +668,7 @@ static int bq25890_hw_init(struct bq25890_device *bq)
        return 0;
 }
 
-static enum power_supply_property bq25890_power_supply_props[] = {
+static const enum power_supply_property bq25890_power_supply_props[] = {
        POWER_SUPPLY_PROP_MANUFACTURER,
        POWER_SUPPLY_PROP_MODEL_NAME,
        POWER_SUPPLY_PROP_STATUS,