summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-02-08 16:19:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-02-09 12:44:32 +0100
commitf27152ccc615a40620ef87a98d76550ad5161357 (patch)
tree2cb27836158ae277f4b9c8def2d28c51f8624af7 /include
parentf15f7d4ca00d97f4f76cccf04ceae71a15d607f3 (diff)
downloadbarebox-f27152ccc615a40620ef87a98d76550ad5161357.tar.gz
barebox-f27152ccc615a40620ef87a98d76550ad5161357.tar.xz
mci: Use struct mci for internal argument passing
The mci layer currently passes around a struct device_d for its internal use. Apart from being confusing this drops typesafety for no good reason. Instead, pass around a struct mci. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/mci.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/mci.h b/include/mci.h
index 9215e390d4..d8a88da5a1 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -267,7 +267,9 @@ struct mci_host {
/** MMC/SD and interface instance information */
struct mci {
+ struct mci_host *host; /**< the host for this card */
struct block_device blk; /**< the blockdevice for the card */
+ struct device_d *mci_dev; /**< the device for our disk (mcix) */
unsigned version;
/** != 0 when a high capacity card is connected (OCR -> OCR_HCS) */
int high_capacity;
@@ -288,9 +290,4 @@ struct mci {
int mci_register(struct mci_host*);
-#define GET_HOST_DATA(x) (x->priv)
-#define GET_HOST_PDATA(x) (x->platform_data)
-#define GET_MCI_DATA(x) (x->priv)
-#define GET_MCI_PDATA(x) (x->platform_data)
-
#endif /* _MCI_H_ */