mfd: as3722: Make FUSE7_REG readable
authorStephen Warren <swarren@nvidia.com>
Tue, 4 Mar 2014 16:50:32 +0000 (09:50 -0700)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 08:58:37 +0000 (08:58 +0000)
commit09507305a5b372812929f3e8acf9b72f35a88c1c
tree2a998f5ac80bb6ee1328686b6f27b8afb5574b2a
parentd2d24ad1c415c68a2d96dedae74421228025c899
mfd: as3722: Make FUSE7_REG readable

The FUSE7_REG register is not currently marked readable. This causes
as3722_sd0_is_low_voltage() to emit an error during boot, and assume
the range of the SD0 regulator:

as3722-regulator as3722-regulator: Reg 0xa7 read failed: -5

Fixes: d4807ad2c4c0 ("regmap: Check readable regs in _regmap_read")
  [exposed the bug, by checking for readability]
Fixes: 762a8ee80897 ("regulator: as3722: detect SD0 low-voltage mode")
  [left out this register from the readable list]

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/as3722.c