]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs42l73: Use case range at appropriate place
authorAxel Lin <axel.lin@ingics.com>
Wed, 12 Aug 2015 03:10:49 +0000 (11:10 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 14 Aug 2015 16:31:19 +0000 (17:31 +0100)
commit98f519ef989ae27c6695e5e7ba9b235115fb8e16
treeb0cf8bd6ee7d52da7cc882cb6050b3f468ac5d1b
parent8b042db1500ea082fdb02faf6fe009f47b1fa1a6
ASoC: cs42l73: Use case range at appropriate place

The readable registers are in continuous ranges: 0x01 ~ 0x03, 0x05 ~ 0x5f.
Use case range syntax makes the code shorter with better readability when
we have a large number of continuous switch cases.
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/cs42l73.c