ASoC: cs35l32: Use case range at appropriate places
authorAxel Lin <axel.lin@ingics.com>
Wed, 12 Aug 2015 03:07:46 +0000 (11:07 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 14 Aug 2015 16:30:02 +0000 (17:30 +0100)
commitc17633081a0dc4c9f8c28b7a77ac5b63a1780e49
tree85941ae160f419671e87651ac948080c5d4f6d56
parentd5a78c8ea050e9c81db1e25a4916d8d9168dfb2e
ASoC: cs35l32: Use case range at appropriate places

Use case range syntax makes the code shorter with better readability when
we have a large number of continuous switch cases.

Below are the summary of readable/volatile/precious registers.

The readable registers:
        0x01 ~  0x0D, 0x0F ~ 0x1C
The volatile registers:
        0x01 ~ 0x05, 0x15 ~ 0x18
The precious registers:
        0x15 ~ 0x18

No functional change with this patch.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l32.c