aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-11-14 15:21:18 -0500
committerDominik Brodowski <linux@dominikbrodowski.net>2006-01-05 17:59:02 -0500
commit98e4c28b7ec390c2dad6a4c69d69629c0f7e8b10 (patch)
treeb3d46f0643352e541d6a39e6da09059687cf713d /include
parent63e7ebd06402951bc8863ba5b7bc9b9f42044849 (diff)
[PATCH] pcmcia: new suspend core
Move the suspend and resume methods out of the event handler, and into special functions. Also use these functions for pre- and post-reset, as almost all drivers already do, and the remaining ones can easily be converted. Bugfix to include/pcmcia/ds.c Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include')
-rw-r--r--include/pcmcia/ds.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h
index cb8b6e6ce66c..020055199008 100644
--- a/include/pcmcia/ds.h
+++ b/include/pcmcia/ds.h
@@ -137,6 +137,10 @@ struct pcmcia_driver {
137 int (*event) (event_t event, int priority, 137 int (*event) (event_t event, int priority,
138 event_callback_args_t *); 138 event_callback_args_t *);
139 void (*detach)(dev_link_t *); 139 void (*detach)(dev_link_t *);
140
141 int (*suspend) (struct pcmcia_device *dev);
142 int (*resume) (struct pcmcia_device *dev);
143
140 struct module *owner; 144 struct module *owner;
141 struct pcmcia_device_id *id_table; 145 struct pcmcia_device_id *id_table;
142 struct device_driver drv; 146 struct device_driver drv;
@@ -193,6 +197,8 @@ struct pcmcia_device {
193#define handle_to_pdev(handle) (handle) 197#define handle_to_pdev(handle) (handle)
194#define handle_to_dev(handle) (handle->dev) 198#define handle_to_dev(handle) (handle->dev)
195 199
200#define dev_to_instance(dev) (dev->instance)
201
196/* error reporting */ 202/* error reporting */
197void cs_error(client_handle_t handle, int func, int ret); 203void cs_error(client_handle_t handle, int func, int ret);
198 204