summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm8350.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-05-23 02:08:53 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-03 16:06:37 +0400
commit14df415a38234aa483219335bc6c1ee899b85e10 (patch)
tree243bc6bc30b7fe3faee0d6ce3b15e34fc99ebe89 /sound/soc/codecs/wm8350.c
parent9f6328d910ef8df8176ed433aa2de037eba1f656 (diff)
downloadlinux-14df415a38234aa483219335bc6c1ee899b85e10.tar.xz
ASoC: tegra+wm8903: simplify gpio tests in widget callbacks
By the time any widget callbacks could be called, if the GPIO ID they will manipulate is valid, it must have already been requested, or the card would have failed to probe or initialize. So, testing for GPIO validity is equivalent to testing whether the GPIO was successfully requested at this point in the code. Making this change will allow later patches to remove the gpio_requested variable. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8350.c')
0 files changed, 0 insertions, 0 deletions