]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb4aa9b48bdc904f7cf7bf5e14e7d1009aa59458
tree4dfc58687cf56b1d80304e97f8ced3055c5162b0
parent0db82ef66ee486f88c3af15fef5dcd3d8eb5f0bd
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