]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm:gpio:mxc add a bank_index entry in platdata
authorPeng Fan <Peng.Fan@freescale.com>
Tue, 10 Feb 2015 06:46:33 +0000 (14:46 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:13:33 +0000 (21:13 +0200)
commita7698f72f7151df65e8a3d410c956b25b24b0a76
tree6bab7de2f4ddf70ed100c33533e0fdaab6034fe0
parent57146604e5cece57b8fac1126cc32ff3cd415e30
dm:gpio:mxc add a bank_index entry in platdata

Add a new entry in platdata structure and intialize
bank_index in mxc_plat array.
This new entry can avoid using `plat - mxc_plat` by using
`plat->bank_index`.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/gpio/mxc_gpio.c