]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mfd: axp20x: Extend axp22x_volatile_ranges
authorHans de Goede <hdegoede@redhat.com>
Sat, 14 May 2016 17:51:28 +0000 (19:51 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 29 Jun 2016 09:14:27 +0000 (10:14 +0100)
The axp22x pmic has a bunch of volatile registers besides the interrupt
ones, extend axp22x_volatile_ranges with these.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/axp20x.c

index e4e32978c37752b46ee1a631b820768477591619..ca04361a0ecd186065e8b5834ddf4c14313094c5 100644 (file)
@@ -93,7 +93,10 @@ static const struct regmap_range axp22x_writeable_ranges[] = {
 };
 
 static const struct regmap_range axp22x_volatile_ranges[] = {
+       regmap_reg_range(AXP20X_PWR_INPUT_STATUS, AXP20X_PWR_OP_MODE),
        regmap_reg_range(AXP20X_IRQ1_EN, AXP20X_IRQ5_STATE),
+       regmap_reg_range(AXP22X_GPIO_STATE, AXP22X_GPIO_STATE),
+       regmap_reg_range(AXP20X_FG_RES, AXP20X_FG_RES),
 };
 
 static const struct regmap_access_table axp22x_writeable_table = {