ASoC: wcd9335: fix address map representation
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 6 Mar 2020 15:26:33 +0000 (15:26 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 6 Mar 2020 15:50:57 +0000 (15:50 +0000)
commitd902e7856d2a3b5da7acab90e5faec22e395e57a
tree99c6b0e3617555207d6800452315bcc697d2822e
parent3fb83cbee1de58fcd5d22f1db89460bb7c08b6e8
ASoC: wcd9335: fix address map representation

slimbus addresses are 16 bit wide, masking page numbers
to wcd register at offset of 12 will limit the number for pages.
So it becomes impossible to write to page 0x10 registers.
Remove masking 0x800 (slimbus address range) from register address
and making use of window parameters in regmap config should fix it
and also will represent the registers exactly inline with Datasheet.

Remove this unnessary masking and make the registers be inline
with datasheet.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200306152633.25836-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd9335.c
sound/soc/codecs/wcd9335.h