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>
This commit is contained in:
Andy Shevchenko 2023-06-30 20:21:52 +03:00 • committed by Mark Brown
commit 5512ffd9f3
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 37 additions and 127 deletions