diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-05-23 00:08:53 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-03 14:06:37 +0200 |
commit | 14df415a38234aa483219335bc6c1ee899b85e10 (patch) | |
tree | 243bc6bc30b7fe3faee0d6ce3b15e34fc99ebe89 /sound/soc/codecs/wm9713.c | |
parent | ASoC: tegra+alc5632: unconditionally free jack GPIOs in remove (diff) | |
download | linux-14df415a38234aa483219335bc6c1ee899b85e10.tar.xz linux-14df415a38234aa483219335bc6c1ee899b85e10.zip |
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/wm9713.c')
0 files changed, 0 insertions, 0 deletions