OSDN Git Service

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)
commit10f4a96543b744c8cc7ef8b0799af21d911dd37d
tree1eb8dfd116c599ef3c5ed1be2979e2405bea97da
parent6f32c521061b704c0198be3ba9834f5a64ea5605
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