summaryrefslogtreecommitdiffstats
path: root/include/sound/rawmidi.h
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-28 07:30:14 +0200
committerMark Brown <broonie@kernel.org>2015-07-29 15:53:55 +0200
commit5549ce82e29c6c1a45ad36a871096ae7c53e53b9 (patch)
tree5e948d9244816f6188626860e1c644ef13798b9f /include/sound/rawmidi.h
parentASoC: max98095: Check for clk_prepare_enable() error (diff)
downloadlinux-5549ce82e29c6c1a45ad36a871096ae7c53e53b9.tar.xz
linux-5549ce82e29c6c1a45ad36a871096ae7c53e53b9.zip
ASoC: max98095: Get rid of max98095_access table
The max98095_access table is used for look up readable/writable attributes of registers. The readable/writable/volatile registers are mostly in continuous ranges, so we can replace the max98095_access table entirely by using case range. Below is a summary of the readable/writeable/volatile registers: readable registers: 0x01 ~ 0x97, 0xFF writeable registers: 0x0F ~ 0x97 volatile registers: 0x00 ~ 0x0E, 0x98 ~ 0xFF 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 'include/sound/rawmidi.h')
0 files changed, 0 insertions, 0 deletions