diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/pcmcia/cs_types.h | 4 | ||||
-rw-r--r-- | include/pcmcia/ds.h | 12 |
2 files changed, 5 insertions, 11 deletions
diff --git a/include/pcmcia/cs_types.h b/include/pcmcia/cs_types.h index 7881d40aac8d..c1d1629fcd27 100644 --- a/include/pcmcia/cs_types.h +++ b/include/pcmcia/cs_types.h | |||
@@ -34,8 +34,8 @@ typedef u_int event_t; | |||
34 | typedef u_char cisdata_t; | 34 | typedef u_char cisdata_t; |
35 | typedef u_short page_t; | 35 | typedef u_short page_t; |
36 | 36 | ||
37 | struct client_t; | 37 | struct pcmcia_device; |
38 | typedef struct client_t *client_handle_t; | 38 | typedef struct pcmcia_device *client_handle_t; |
39 | 39 | ||
40 | struct window_t; | 40 | struct window_t; |
41 | typedef struct window_t *window_handle_t; | 41 | typedef struct window_t *window_handle_t; |
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index c574ff108148..e0a5acb7fcb7 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -162,13 +162,7 @@ struct pcmcia_device { | |||
162 | struct soon */ | 162 | struct soon */ |
163 | dev_link_t *instance; | 163 | dev_link_t *instance; |
164 | event_callback_args_t event_callback_args; | 164 | event_callback_args_t event_callback_args; |
165 | 165 | u_int state; | |
166 | struct client_t { | ||
167 | u_short client_magic; | ||
168 | struct pcmcia_socket *Socket; | ||
169 | u_char Function; | ||
170 | u_int state; | ||
171 | } client; | ||
172 | 166 | ||
173 | /* information about this device */ | 167 | /* information about this device */ |
174 | u8 has_manf_id:1; | 168 | u8 has_manf_id:1; |
@@ -193,8 +187,8 @@ struct pcmcia_device { | |||
193 | #define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev) | 187 | #define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev) |
194 | #define to_pcmcia_drv(n) container_of(n, struct pcmcia_driver, drv) | 188 | #define to_pcmcia_drv(n) container_of(n, struct pcmcia_driver, drv) |
195 | 189 | ||
196 | #define handle_to_pdev(handle) container_of(handle, struct pcmcia_device, client); | 190 | #define handle_to_pdev(handle) (handle) |
197 | #define handle_to_dev(handle) ((container_of(handle, struct pcmcia_device, client))->dev) | 191 | #define handle_to_dev(handle) (handle->dev) |
198 | 192 | ||
199 | /* error reporting */ | 193 | /* error reporting */ |
200 | void cs_error(client_handle_t handle, int func, int ret); | 194 | void cs_error(client_handle_t handle, int func, int ret); |