diff options
author | Doug Anderson <dianders@chromium.org> | 2014-04-16 16:12:27 -0700 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-04-23 12:32:19 +0100 |
commit | c42ba72ec3a7a1b6aa30122931f1f4b91b601c31 (patch) | |
tree | 7c8eb878e231d35da4a3178db85046d91fd13830 /drivers/power/tps65090-charger.c | |
parent | 7d811771c95ebab358eca8e68b53efe09e3a6a96 (diff) | |
download | op-kernel-dev-c42ba72ec3a7a1b6aa30122931f1f4b91b601c31.zip op-kernel-dev-c42ba72ec3a7a1b6aa30122931f1f4b91b601c31.tar.gz |
mfd: tps65090: Stop caching most registers
Nearly all of the registers in tps65090 combine control bits and
status bits. Turn off caching of all registers except the select few
that can be cached.
In order to avoid adding more duplicate #defines, we also move some
register offset definitions to the mfd driver (and resolve
inconsistent names).
Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/power/tps65090-charger.c')
-rw-r--r-- | drivers/power/tps65090-charger.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/power/tps65090-charger.c b/drivers/power/tps65090-charger.c index 8fc9d6d..1685f63 100644 --- a/drivers/power/tps65090-charger.c +++ b/drivers/power/tps65090-charger.c @@ -28,17 +28,6 @@ #include <linux/mfd/tps65090.h> -#define TPS65090_REG_INTR_STS 0x00 -#define TPS65090_REG_INTR_MASK 0x02 -#define TPS65090_REG_CG_CTRL0 0x04 -#define TPS65090_REG_CG_CTRL1 0x05 -#define TPS65090_REG_CG_CTRL2 0x06 -#define TPS65090_REG_CG_CTRL3 0x07 -#define TPS65090_REG_CG_CTRL4 0x08 -#define TPS65090_REG_CG_CTRL5 0x09 -#define TPS65090_REG_CG_STATUS1 0x0a -#define TPS65090_REG_CG_STATUS2 0x0b - #define TPS65090_CHARGER_ENABLE BIT(0) #define TPS65090_VACG BIT(1) #define TPS65090_NOITERM BIT(5) |