ASoC: twl6040: Simplify custom put_volsw callback
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 4 Oct 2011 11:39:42 +0000 (14:39 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 4 Oct 2011 15:28:29 +0000 (16:28 +0100)
commitbfd3d4e9fbb9705181b821b478cc044911e47320
tree1f22e4972d6ca5becb45fe67e55f5e32551a88c4
parentcdffa775e72de3a3d3ddccd04eb4eb94d58e84e6
ASoC: twl6040: Simplify custom put_volsw callback

Return -EINVAL in the unlikely event, if the function has been called
for unhandled control. This way we can remove one check in the code.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl6040.c