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)
commite3c1d6c8c59ae542e53c6ef4602eabc39c108575
treeebdebcbb10aed711928c7138e869531213673a49
parentf2a2f2c9aed21944095c2f867640a9089759c7e7
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 d3054ba1db62 ("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: d3054ba1db62 ("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