ASoC: rt5677: Refactor GPIO support code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 30 Jun 2023 17:21:52 +0000 (20:21 +0300)
committerMark Brown <broonie@kernel.org>
Sun, 9 Jul 2023 21:47:06 +0000 (22:47 +0100)
commit5512ffd9f39832f312b7f903703ac39d6367fe8a
treeecfe347231cb5fdb38b5e2bf8f0d127a1a8845ff
parent3d74f42c56db263e82ad96f8fe23aef38cdc071f
ASoC: rt5677: Refactor GPIO support code

After compiler complains:

  sound/soc/codecs/rt5677.c:4748:30: warning: dubious: x | !y

I looked into the code and realized that we can refactor it
for better reading and fixing above issue at the same time.
Hence this change. It does not imply any functional changes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230630172155.83754-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677.c
sound/soc/codecs/rt5677.h