]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: bytcht_es8316: Switch to use gpiod_get_optional()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 6 Oct 2021 15:04:27 +0000 (18:04 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 14:45:10 +0000 (15:45 +0100)
commit9663d07e466aeec0628f4c73dcb238b0a0729736
tree1eb8dfd116c599ef3c5ed1be2979e2405bea97da
parent1637b98b704e52a56629d39aa6c66755c242445f
ASoC: Intel: bytcht_es8316: Switch to use gpiod_get_optional()

First of all, replace indexed API by plain one since we have index 0.
Second, switch to optional variant and drop duplicated code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211006150428.16434-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcht_es8316.c