]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: 74xx-mmio: Use bits instead of plain numbers for flags
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 Jul 2022 09:14:48 +0000 (12:14 +0300)
committerBartosz Golaszewski <brgl@bgdev.pl>
Thu, 28 Jul 2022 13:47:56 +0000 (15:47 +0200)
commit0d496c411f8e47e04317313d026b5b4cbd9fa1f0
treeebdebcbb10aed711928c7138e869531213673a49
parentcb35eff3957d099d695fb98f26d4db7f76d23cce
gpio: 74xx-mmio: Use bits instead of plain numbers for flags

The initial code was misleading to use bitwise AND against plain number,
and the commit 7c450badfed5 ("gpio: 74xx-mmio: Check MMIO_74XX_DIR_IN flag
in mmio_74xx_dir_in()") missed that. Switch definitions to be defined bits
for the correct comparison.

Fixes: 7c450badfed5 ("gpio: 74xx-mmio: Check MMIO_74XX_DIR_IN flag in mmio_74xx_dir_in()")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-74xx-mmio.c