diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-01-10 20:41:27 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-31 17:01:43 +0200 |
commit | dbb22f0d65ccc2e9dfeb4c420942f2757a80f8d2 (patch) | |
tree | 242382a959af9e8ac93afbc187fc74db9494d7c9 /drivers/pcmcia/cs_internal.h | |
parent | 1ae9c7d8198ae973da3b927e28d63f294ffa11e3 (diff) | |
download | blackbird-op-linux-dbb22f0d65ccc2e9dfeb4c420942f2757a80f8d2.tar.gz blackbird-op-linux-dbb22f0d65ccc2e9dfeb4c420942f2757a80f8d2.zip |
[PATCH] pcmcia: access config_t using pointer instead of array
Access the PCMCIA config_t struct (one per device function) using
a pointer in struct pcmcia_device, instead of looking them up in
an array.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/cs_internal.h')
-rw-r--r-- | drivers/pcmcia/cs_internal.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h index 2b267def9621..f889a44280f5 100644 --- a/drivers/pcmcia/cs_internal.h +++ b/drivers/pcmcia/cs_internal.h @@ -94,12 +94,6 @@ static inline void cs_socket_put(struct pcmcia_socket *skt) } } -#define CHECK_SOCKET(s) \ - (((s) >= sockets) || (socket_table[s]->ops == NULL)) - -#define SOCKET(h) (h->socket) -#define CONFIG(h) (&SOCKET(h)->config[(h)->func]) - /* In cardbus.c */ int cb_alloc(struct pcmcia_socket *s); void cb_free(struct pcmcia_socket *s); |