]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-gpio: rename MTK_MAX_BANK into MTK_BANK_CNT
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 25 May 2018 16:54:47 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2018 09:17:05 +0000 (11:17 +0200)
commitec3c4f7fa0cccc561650f4fdd177de94ad7050f3
tree19a67f8dceee874366603cbc4e80d2f9e003d6f2
parent3df2f2036b7788b453d8c91f488b1658dc7c5dcc
staging: mt7621-gpio: rename MTK_MAX_BANK into MTK_BANK_CNT

There are 3 banks of gpios numbered '0' and '1' and '2'. So
the maximum bank number is "2". "3" is the count of banks.
In order to make the code looks and be correct on checking
max allowed gpio's id it makes sense to change the name of
this definition. Also there is another definitions which
start with the same prefix MKK_BANK_ of the new name so
having those with the same prefix makes all preprocessor
structure to be the same. This improves readability.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-gpio/gpio-mt7621.c