mfd: twl-core: Fix accessibility of some twl4030 audio registers
authorTomas Novotny <tomas@novotny.cz>
Mon, 10 Mar 2014 18:12:50 +0000 (19:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:26 +0000 (07:59 -0700)
commit53135e61923afaaa461bbca2b365767c39368ab2
tree30b95dc02f5b8e992cd103b7e2b8a34e7908e552
parent00834e4d81ffd1e58206d24ed096f8210958096f
mfd: twl-core: Fix accessibility of some twl4030 audio registers

commit 56816b700c8c773270f3aaf4c92be53e359a03fd upstream.

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).

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/twl-core.c