[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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user