diff options
author | Alex Dubov <oakad@yahoo.com> | 2007-04-12 02:59:17 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-01 07:04:13 -0400 |
commit | 6113ed73e61a13db9da48831e1b35788b7f837cc (patch) | |
tree | e22d9c8927ea8b987aaf887192e2759959b8527c /include/linux/tifm.h | |
parent | 342c0ec4859446140c0dc5d7d903bb3b3f0577cd (diff) |
tifm: move common adapter management tasks from tifm_7xx1 to tifm_core
Some details of the adapter management (create, add, remove) are really
belong to the tifm_core, as they are not hardware specific.
Signed-off-by: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux/tifm.h')
-rw-r--r-- | include/linux/tifm.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/linux/tifm.h b/include/linux/tifm.h index d9de79275c21..a7bd654e2ee5 100644 --- a/include/linux/tifm.h +++ b/include/linux/tifm.h | |||
@@ -114,19 +114,23 @@ struct tifm_adapter { | |||
114 | unsigned int id; | 114 | unsigned int id; |
115 | unsigned int num_sockets; | 115 | unsigned int num_sockets; |
116 | struct completion *finish_me; | 116 | struct completion *finish_me; |
117 | struct tifm_dev **sockets; | 117 | |
118 | struct work_struct media_switcher; | 118 | struct work_struct media_switcher; |
119 | struct class_device cdev; | 119 | struct class_device cdev; |
120 | struct device *dev; | ||
121 | 120 | ||
122 | void (*eject)(struct tifm_adapter *fm, struct tifm_dev *sock); | 121 | void (*eject)(struct tifm_adapter *fm, |
122 | struct tifm_dev *sock); | ||
123 | |||
124 | struct tifm_dev *sockets[0]; | ||
123 | }; | 125 | }; |
124 | 126 | ||
125 | struct tifm_adapter *tifm_alloc_adapter(void); | 127 | struct tifm_adapter *tifm_alloc_adapter(unsigned int num_sockets, |
126 | void tifm_free_device(struct device *dev); | 128 | struct device *dev); |
127 | void tifm_free_adapter(struct tifm_adapter *fm); | ||
128 | int tifm_add_adapter(struct tifm_adapter *fm); | 129 | int tifm_add_adapter(struct tifm_adapter *fm); |
129 | void tifm_remove_adapter(struct tifm_adapter *fm); | 130 | void tifm_remove_adapter(struct tifm_adapter *fm); |
131 | void tifm_free_adapter(struct tifm_adapter *fm); | ||
132 | |||
133 | void tifm_free_device(struct device *dev); | ||
130 | struct tifm_dev *tifm_alloc_device(struct tifm_adapter *fm); | 134 | struct tifm_dev *tifm_alloc_device(struct tifm_adapter *fm); |
131 | int tifm_register_driver(struct tifm_driver *drv); | 135 | int tifm_register_driver(struct tifm_driver *drv); |
132 | void tifm_unregister_driver(struct tifm_driver *drv); | 136 | void tifm_unregister_driver(struct tifm_driver *drv); |