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)
committerSimon Glass <sjg@chromium.org>
Thu, 12 Feb 2015 22:17:29 +0000 (15:17 -0700)
commit637a7693185d00c392df8a9886cb17f462e9a51b
tree8ac854a7b538fa25abbfae7d737413b3a00b16e6
parentc9cac3f8413c1f67d1e1b7a1770e584584107cd2
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