[RESEND PATCH 5/6] staging: mt7621-gpio: change gc_map to don't use pointers

2018-06-01 Thread Sergio Paracuellos
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 Reviewed-by: NeilBrown ---

[PATCH 5/6] staging: mt7621-gpio: change gc_map to don't use pointers

2018-05-28 Thread Sergio Paracuellos
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 ---