From: Peter Ujfalusi Date: Wed, 5 Oct 2011 07:29:20 +0000 (+0300) Subject: ASoC: twl6040: Simplify custom get_volsw callback X-Git-Tag: v3.2-rc1~127^2~1^2~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e49b68339ebc7d2e67dc1ae16a4ac6a35fcfc9d5;p=pandora-kernel.git ASoC: twl6040: Simplify custom get_volsw callback The custom get_volsw does not need to call any core get_volsw calls, since we are returning the shadow values for the gains. 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed