summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tlv320aic26.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-28 13:29:00 +0800
committerMark Brown <broonie@kernel.org>2015-07-29 14:53:41 +0100
commitf102aa1414d9aa28491414cf4103bad1ddb3ea1f (patch)
treef629721c3057ca644ce4c8446e00c19506b3ef4e /sound/soc/codecs/tlv320aic26.c
parentb650247da5a8c5d8991eeb9cf31e2e71d7be1b08 (diff)
downloadlinux-stable-f102aa1414d9aa28491414cf4103bad1ddb3ea1f.tar.gz
linux-stable-f102aa1414d9aa28491414cf4103bad1ddb3ea1f.tar.bz2
linux-stable-f102aa1414d9aa28491414cf4103bad1ddb3ea1f.zip
ASoC: max98088: Get rid of max98088_access table
The max98088_access table is used for look up readable/writable/volatile attributes of registers. The readable/writable/volatile registers are mostly in continuous ranges, so we can replace the max98088_access table entirely by using case range. Below is a summary of the readable/writeable/volatile registers: readable registers: 0x00 ~ 0xC9, 0xFF writeable registers: 0x03 ~ 0xC9 volatile registers: 0x00 ~ 0x03, 0xFF Note, 0x00 should be read-only according to the datasheet. This patch reworks the implement for .readable and .volatile and also add implementation for .writable callback. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic26.c')
0 files changed, 0 insertions, 0 deletions