diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-05-09 23:08:33 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-12 18:52:12 +0100 |
commit | 79ffbf11b77d4ded9935cdd291a84936b7f003ef (patch) | |
tree | 1b8ef590a6f651ec9a9659a867fb6d33e70a0974 /drivers/md/dm-switch.c | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) | |
download | kernel_replicant_linux-79ffbf11b77d4ded9935cdd291a84936b7f003ef.tar.gz kernel_replicant_linux-79ffbf11b77d4ded9935cdd291a84936b7f003ef.tar.bz2 kernel_replicant_linux-79ffbf11b77d4ded9935cdd291a84936b7f003ef.zip |
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>
Diffstat (limited to 'drivers/md/dm-switch.c')
0 files changed, 0 insertions, 0 deletions