diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-07-07 20:59:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:24:06 -0400 |
commit | e12a9a93a8417c4f2aa46ce8346c2d27e656b9a2 (patch) | |
tree | ca4295237f29c54901c199b322e504f89a45c902 /drivers/pcmcia/cs_internal.h | |
parent | 1e212f3645a6b355de8c43a23376bc0e2ac49a63 (diff) |
[PATCH] pcmcia: remove client_t usage
Reduce the occurences of "client_handle_t" which is nothing else than a
pointer to struct pcmcia_device by now.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/pcmcia/cs_internal.h')
-rw-r--r-- | drivers/pcmcia/cs_internal.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h index e0ba4b5daa13..6bbfbd0e02a5 100644 --- a/drivers/pcmcia/cs_internal.h +++ b/drivers/pcmcia/cs_internal.h | |||
@@ -99,20 +99,11 @@ static inline void cs_socket_put(struct pcmcia_socket *skt) | |||
99 | } | 99 | } |
100 | } | 100 | } |
101 | 101 | ||
102 | #define CHECK_HANDLE(h) \ | ||
103 | (((h) == NULL) || ((h)->client_magic != CLIENT_MAGIC)) | ||
104 | |||
105 | #define CHECK_SOCKET(s) \ | 102 | #define CHECK_SOCKET(s) \ |
106 | (((s) >= sockets) || (socket_table[s]->ops == NULL)) | 103 | (((s) >= sockets) || (socket_table[s]->ops == NULL)) |
107 | 104 | ||
108 | #define SOCKET(h) (h->Socket) | 105 | #define SOCKET(h) (h->socket) |
109 | #define CONFIG(h) (&SOCKET(h)->config[(h)->Function]) | 106 | #define CONFIG(h) (&SOCKET(h)->config[(h)->func]) |
110 | |||
111 | #define CHECK_REGION(r) \ | ||
112 | (((r) == NULL) || ((r)->region_magic != REGION_MAGIC)) | ||
113 | |||
114 | #define CHECK_ERASEQ(q) \ | ||
115 | (((q) == NULL) || ((q)->eraseq_magic != ERASEQ_MAGIC)) | ||
116 | 107 | ||
117 | /* In cardbus.c */ | 108 | /* In cardbus.c */ |
118 | int cb_alloc(struct pcmcia_socket *s); | 109 | int cb_alloc(struct pcmcia_socket *s); |