dm: mmc: sunxi: Pass private data around explicitly
authorSimon Glass <sjg@chromium.org>
Tue, 4 Jul 2017 19:31:25 +0000 (13:31 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 1 Aug 2017 02:58:01 +0000 (11:58 +0900)
commit034e226bc77e6b2137acaa5094d9886c8bc9a07e
tree64fbd5ebacf88cdcf62ce40e7670a4e49a41707c
parent3f5af12a5d24756dce661b0bc34c05f0fe1715aa
dm: mmc: sunxi: Pass private data around explicitly

At present the driver-private data is obtained in various functions by
various means. With driver model this is provided automatically. Without
driver model it comes from a C array declared at the top of the file.

Adjust internal functions so that they are passed the private data as
a parameter, allowing the caller to obtain it using either means.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/mmc/sunxi_mmc.c