Skip to content

Commit

Permalink
power_supply: rt5033: Constify struct regmap_config
Browse files Browse the repository at this point in the history
The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
  • Loading branch information
krzk authored and sre committed Feb 25, 2015
1 parent 7be72c2 commit 65ce1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/rt5033_battery.c
Expand Up @@ -102,7 +102,7 @@ static enum power_supply_property rt5033_battery_props[] = {
POWER_SUPPLY_PROP_CAPACITY,
};

static struct regmap_config rt5033_battery_regmap_config = {
static const struct regmap_config rt5033_battery_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.max_register = RT5033_FUEL_REG_END,
Expand Down

0 comments on commit 65ce1c9

Please sign in to comment.