diff options
| author | 2022-07-19 01:02:51 +0300 | |
|---|---|---|
| committer | 2022-07-19 10:14:37 +0200 | |
| commit | d3054ba1db6270e14245efa28dbd1cf10207d4f2 (patch) | |
| tree | 4647792d7cbe4ca703807ab67e21f20d9a780135 /tools/testing/selftests/exec/git:/ssh:/git@git.zx2c4.com | |
| parent | gpio: 74xx-mmio: Make use of device properties (diff) | |
| download | linux-dev-d3054ba1db6270e14245efa28dbd1cf10207d4f2.tar.xz linux-dev-d3054ba1db6270e14245efa28dbd1cf10207d4f2.zip | |
gpio: 74xx-mmio: Check MMIO_74XX_DIR_IN flag in mmio_74xx_dir_in()
It's logically better to check the IN in ->direction_input() and
_OUT in ->direction_output().
While at it, replace ternary with plain if-conditional for the sake
of consistency with mmio_74xx_dir_out().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'tools/testing/selftests/exec/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
