[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>
This commit is contained in:
committed by
Linus Torvalds
parent
1e212f3645
commit
e12a9a93a8
@ -99,20 +99,11 @@ static inline void cs_socket_put(struct pcmcia_socket *skt)
|
||||
}
|
||||
}
|
||||
|
||||
#define CHECK_HANDLE(h) \
|
||||
(((h) == NULL) || ((h)->client_magic != CLIENT_MAGIC))
|
||||
|
||||
#define CHECK_SOCKET(s) \
|
||||
(((s) >= sockets) || (socket_table[s]->ops == NULL))
|
||||
|
||||
#define SOCKET(h) (h->Socket)
|
||||
#define CONFIG(h) (&SOCKET(h)->config[(h)->Function])
|
||||
|
||||
#define CHECK_REGION(r) \
|
||||
(((r) == NULL) || ((r)->region_magic != REGION_MAGIC))
|
||||
|
||||
#define CHECK_ERASEQ(q) \
|
||||
(((q) == NULL) || ((q)->eraseq_magic != ERASEQ_MAGIC))
|
||||
#define SOCKET(h) (h->socket)
|
||||
#define CONFIG(h) (&SOCKET(h)->config[(h)->func])
|
||||
|
||||
/* In cardbus.c */
|
||||
int cb_alloc(struct pcmcia_socket *s);
|
||||
|
Reference in New Issue
Block a user