staging: mt7621-gpio: change gc_map to don't use pointers
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 1 Jun 2018 09:30:55 +0000 (11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2018 11:16:24 +0000 (13:16 +0200)
commit53364c7ba4b25d6e3f428605254c50d5dfaaa430
tree5528ac3f88246b9eb000a39d7539fe016938e059
parent1e2735fe1b49cfa5dd668f61778aaaa46c6fe1c8
staging: mt7621-gpio: change gc_map to don't use pointers

There is no special gain in using pointers for 'gc_map' inside
'mtk_data' structure. We know the number of banks which is fixed
to MTK_BANK_CNT and we can just statically allocate them without
using kernel allocators.

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