ASoC: Intel: bytcht_es8316: Switch to use gpiod_get_optional()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 7 Oct 2021 16:45:22 +0000 (19:45 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 8 Oct 2021 12:51:13 +0000 (13:51 +0100)
commit4e03b1b772ba33ea72e40918819b5e65a30a6eb6
tree4dfc58687cf56b1d80304e97f8ced3055c5162b0
parente8ccf82b8a573c543a5356f503cf2edb66cccb6f
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>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Message-Id: <20211007164523.27094-4-andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcht_es8316.c