diff options
author | Serge Semin <Sergey.Semin@baikalelectronics.ru> | 2020-07-30 17:28:01 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-08-27 10:32:57 +0200 |
commit | f9f890ba2b13ea9ccfffd0e7354c7b64d9109790 (patch) | |
tree | 89e6c0438c164635b1f5e12abd171563fbf392c2 /drivers/gpio/gpio-max7300.c | |
parent | gpio: dwapb: Move MFD-specific IRQ handler (diff) | |
download | linux-f9f890ba2b13ea9ccfffd0e7354c7b64d9109790.tar.xz linux-f9f890ba2b13ea9ccfffd0e7354c7b64d9109790.zip |
gpio: dwapb: Add max GPIOs macro
Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number
of GPIO lines corresponding to the maximum DW APB GPIO controller port
width. Use the new macro instead of number literal 32 where it's
applicable.
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200730152808.2955-5-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-max7300.c')
0 files changed, 0 insertions, 0 deletions