diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-07-26 12:14:48 +0300 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2022-07-28 15:47:56 +0200 |
commit | e3c1d6c8c59ae542e53c6ef4602eabc39c108575 (patch) | |
tree | ebdebcbb10aed711928c7138e869531213673a49 /lib/glob.c | |
parent | f2a2f2c9aed21944095c2f867640a9089759c7e7 (diff) |
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>
Diffstat (limited to 'lib/glob.c')
0 files changed, 0 insertions, 0 deletions