diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-19 07:39:01 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-07-09 15:27:56 -0400 |
commit | 4101c16a910b15afd190c6bc7d45864461cf5c25 (patch) | |
tree | 76d88e3bfd6723fc86c13c635b3c2b73c73c6978 /drivers/mmc/core/core.h | |
parent | 7de064ebc67d9baf6c933d3a7046feb9b4eced05 (diff) |
mmc: refactor bus operations
Move bus operations to its own file for the sake of clarity. Also
delegate sysfs attributes to bus handlers in preparation for other
more exotic types.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/core/core.h')
-rw-r--r-- | drivers/mmc/core/core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.h b/drivers/mmc/core/core.h index 177264d090a..1be86c792a5 100644 --- a/drivers/mmc/core/core.h +++ b/drivers/mmc/core/core.h | |||
@@ -18,6 +18,8 @@ | |||
18 | struct mmc_bus_ops { | 18 | struct mmc_bus_ops { |
19 | void (*remove)(struct mmc_host *); | 19 | void (*remove)(struct mmc_host *); |
20 | void (*detect)(struct mmc_host *); | 20 | void (*detect)(struct mmc_host *); |
21 | int (*sysfs_add)(struct mmc_host *, struct mmc_card *card); | ||
22 | void (*sysfs_remove)(struct mmc_host *, struct mmc_card *card); | ||
21 | void (*suspend)(struct mmc_host *); | 23 | void (*suspend)(struct mmc_host *); |
22 | void (*resume)(struct mmc_host *); | 24 | void (*resume)(struct mmc_host *); |
23 | }; | 25 | }; |
@@ -54,8 +56,6 @@ void mmc_set_bus_width(struct mmc_host *host, unsigned int width); | |||
54 | u32 mmc_select_voltage(struct mmc_host *host, u32 ocr); | 56 | u32 mmc_select_voltage(struct mmc_host *host, u32 ocr); |
55 | void mmc_set_timing(struct mmc_host *host, unsigned int timing); | 57 | void mmc_set_timing(struct mmc_host *host, unsigned int timing); |
56 | 58 | ||
57 | struct mmc_card *mmc_alloc_card(struct mmc_host *host); | ||
58 | |||
59 | static inline void mmc_delay(unsigned int ms) | 59 | static inline void mmc_delay(unsigned int ms) |
60 | { | 60 | { |
61 | if (ms < 1000 / HZ) { | 61 | if (ms < 1000 / HZ) { |