diff options
author | Daniel Schultz <d.schultz@phytec.de> | 2015-09-02 08:28:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-04 08:59:42 +0200 |
commit | 572e8cdfa34130fac53ff95102a246a694880444 (patch) | |
tree | c321b8caa1d4e2dcf440981f1b83ceec0c16a51a /include/mci.h | |
parent | 1f76dfce39cf04b963d542a72e0af4bcf12a4313 (diff) | |
download | barebox-572e8cdfa34130fac53ff95102a246a694880444.tar.gz barebox-572e8cdfa34130fac53ff95102a246a694880444.tar.xz |
drivers: mci: Add mci_get_device_by_name function
Get a 'struct mci' by search after the device name.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mci.h')
-rw-r--r-- | include/mci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mci.h b/include/mci.h index 9e4d18b069..41a757e6de 100644 --- a/include/mci.h +++ b/include/mci.h @@ -466,6 +466,8 @@ struct mci { struct mci_part *part_curr; u8 ext_csd_part_config; + + struct list_head list; /* The list of all mci devices */ }; int mci_register(struct mci_host*); @@ -483,4 +485,6 @@ static inline int mmc_host_is_spi(struct mci_host *host) return 0; } +struct mci *mci_get_device_by_name(const char *name); + #endif /* _MCI_H_ */ |