mfd: twl-core: Fix accessibility of some twl4030 audio registers
commit56816b700c8c773270f3aaf4c92be53e359a03fd
authorTomas Novotny <tomas@novotny.cz>
Mon, 10 Mar 2014 18:12:50 +0000 (10 19:12 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 08:58:43 +0000 (19 08:58 +0000)
tree135bbca24ba3eca8aa2432b7f1558d40cadefe16
parent2d5d366a08f428aa2b26fca4478c510c89bc41f2
mfd: twl-core: Fix accessibility of some twl4030 audio registers

There are some unused registers in twl4030 at I2C address 0x49 and function
twl4030_49_nop_reg() is used to check accessibility of that registers. These
registers are written in decimal format but the values are correct in
hexadecimal format. (It can be checked few lines above the patched code -
these registers are marked as unused there.)

As a consequence three registers of audio submodule are treated as
inaccessible (preamplifier carkit right and both handsfree registers).

Cc: stable@vger.kernel.org
Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl-core.c