Skip to content

Commit

Permalink
power: bq25890: make property table const
Browse files Browse the repository at this point in the history
Property list should not change, so mark it const.

Signed-off-by: Michał Mirosław <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
  • Loading branch information
osctobe authored and sre committed May 3, 2020
1 parent 5956fca commit a6a48fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/supply/bq25890_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a6a48fa

Please sign in to comment.