ASoC: wm8983: Get rid of wm8983_access_masks table
authorAxel Lin <axel.lin@ingics.com>
Tue, 28 Jul 2015 05:39:01 +0000 (13:39 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jul 2015 13:54:13 +0000 (14:54 +0100)
commit85e7118412fea31464b62d00bcf4a65fa8904dcc
tree91d37fb53455b95ff54b9206d7a241b111c6408b
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
ASoC: wm8983: Get rid of wm8983_access_masks table

The max8983_access table is used for look up readable/writable
attributes of registers. The writable registers are mostly in continuous
ranges, so we can replace max8983_access table by using case range.
The read fields are all 0, so just drop implement of .readable callback.

Also set .max_register setting.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8983.c