ASoC: sta32x: Use devm_gpiod_get_optional at appropriate place
authorAxel Lin <axel.lin@ingics.com>
Sat, 9 May 2015 15:08:33 +0000 (23:08 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2015 17:52:12 +0000 (18:52 +0100)
commit79ffbf11b77d4ded9935cdd291a84936b7f003ef
tree1b8ef590a6f651ec9a9659a867fb6d33e70a0974
parentb787f68c36d49bb1d9236f403813641efa74a031
ASoC: sta32x: Use devm_gpiod_get_optional at appropriate place

devm_gpiod_get_optional() is equivalent to devm_gpiod_get(), except that
when no GPIO was assigned to the requested function it will return NULL.
This is convenient for drivers that need to handle optional GPIOs.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sta32x.c