]> 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)
commitbc2ab186fd0a028633c28a72116ff382445c4011
treeebdebcbb10aed711928c7138e869531213673a49
parentc305ce336f42eef02e3238eb4f210924fd6084b5
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 7b1c44b608be ("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: 7b1c44b608be ("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