]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: atmel: tse850: fix off-by-one in the "ANA" enumeration count
authorPeter Rosin <peda@axentia.se>
Wed, 31 May 2017 12:32:33 +0000 (14:32 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2017 18:53:36 +0000 (19:53 +0100)
commita886ffd656eede1a199e97fe53f539f766535de0
tree53aeac18616977b953f43fbe5232fd4e314f20c7
parent1bef989ca48b2a64c1c6fd3bb8f3778f3c060b99
ASoC: atmel: tse850: fix off-by-one in the "ANA" enumeration count

At some point I added the "Low" entry at the beginning of the array
without bumping the enumeration count from 9 to 10. Fix this. While at
it, fix the anti-pattern for the other enumeration (used by MUX{1,2}).

Fixes: 27219fc851fb ("ASoC: atmel: tse850: add ASoC driver for the Axentia TSE-850")
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/atmel/tse850-pcm5142.c