]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-gpio: use MTK_BANK_WIDTH instead of magic number
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 20 May 2018 13:00:26 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:49:32 +0000 (18:49 +0200)
commit7dc7e6e4029386e1503d98d6582182e095c41833
tree1757ac574891d81447437441e000852d76434d5b
parent5df7a708833641b403c64cd1fe5862651be3422a
staging: mt7621-gpio: use MTK_BANK_WIDTH instead of magic number

There are some places where magic number '32' is being used to get
the gpio bank. There already exist a definition MTK_BANK_WIDTH
with this value, so just use it instead.

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