aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pcmcia_compat.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-07-07 20:59:02 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 21:24:06 -0400
commit2bc5a9bdc56fac6f7cbf95b89443e3809141c247 (patch)
treeb9cc15e994df40ca5f1e9748f2bb32e9e292c5d7 /drivers/pcmcia/pcmcia_compat.c
parente12a9a93a8417c4f2aa46ce8346c2d27e656b9a2 (diff)
[PATCH] pcmcia: reduce client_handle_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/pcmcia_compat.c')
-rw-r--r--drivers/pcmcia/pcmcia_compat.c36
1 files changed, 11 insertions, 25 deletions
diff --git a/drivers/pcmcia/pcmcia_compat.c b/drivers/pcmcia/pcmcia_compat.c
index 916de6f85a2f..962ca004ac1b 100644
--- a/drivers/pcmcia/pcmcia_compat.c
+++ b/drivers/pcmcia/pcmcia_compat.c
@@ -28,53 +28,39 @@
28 28
29#include "cs_internal.h" 29#include "cs_internal.h"
30 30
31int pcmcia_get_first_tuple(client_handle_t handle, tuple_t *tuple) 31int pcmcia_get_first_tuple(struct pcmcia_device *p_dev, tuple_t *tuple)
32{ 32{
33 struct pcmcia_socket *s; 33 return pccard_get_first_tuple(p_dev->socket, p_dev->func, tuple);
34 s = SOCKET(handle);
35 return pccard_get_first_tuple(s, handle->func, tuple);
36} 34}
37EXPORT_SYMBOL(pcmcia_get_first_tuple); 35EXPORT_SYMBOL(pcmcia_get_first_tuple);
38 36
39int pcmcia_get_next_tuple(client_handle_t handle, tuple_t *tuple) 37int pcmcia_get_next_tuple(struct pcmcia_device *p_dev, tuple_t *tuple)
40{ 38{
41 struct pcmcia_socket *s; 39 return pccard_get_next_tuple(p_dev->socket, p_dev->func, tuple);
42 s = SOCKET(handle);
43 return pccard_get_next_tuple(s, handle->func, tuple);
44} 40}
45EXPORT_SYMBOL(pcmcia_get_next_tuple); 41EXPORT_SYMBOL(pcmcia_get_next_tuple);
46 42
47int pcmcia_get_tuple_data(client_handle_t handle, tuple_t *tuple) 43int pcmcia_get_tuple_data(struct pcmcia_device *p_dev, tuple_t *tuple)
48{ 44{
49 struct pcmcia_socket *s; 45 return pccard_get_tuple_data(p_dev->socket, tuple);
50 s = SOCKET(handle);
51 return pccard_get_tuple_data(s, tuple);
52} 46}
53EXPORT_SYMBOL(pcmcia_get_tuple_data); 47EXPORT_SYMBOL(pcmcia_get_tuple_data);
54 48
55int pcmcia_parse_tuple(client_handle_t handle, tuple_t *tuple, cisparse_t *parse) 49int pcmcia_parse_tuple(struct pcmcia_device *p_dev, tuple_t *tuple, cisparse_t *parse)
56{ 50{
57 return pccard_parse_tuple(tuple, parse); 51 return pccard_parse_tuple(tuple, parse);
58} 52}
59EXPORT_SYMBOL(pcmcia_parse_tuple); 53EXPORT_SYMBOL(pcmcia_parse_tuple);
60 54
61int pcmcia_validate_cis(client_handle_t handle, cisinfo_t *info) 55int pcmcia_validate_cis(struct pcmcia_device *p_dev, cisinfo_t *info)
62{ 56{
63 struct pcmcia_socket *s; 57 return pccard_validate_cis(p_dev->socket, p_dev->func, info);
64 s = SOCKET(handle);
65 return pccard_validate_cis(s, handle->func, info);
66} 58}
67EXPORT_SYMBOL(pcmcia_validate_cis); 59EXPORT_SYMBOL(pcmcia_validate_cis);
68 60
69 61
70int pcmcia_reset_card(client_handle_t handle, client_req_t *req) 62int pcmcia_reset_card(struct pcmcia_device *p_dev, client_req_t *req)
71{ 63{
72 struct pcmcia_socket *skt; 64 return pccard_reset_card(p_dev->socket);
73
74 skt = SOCKET(handle);
75 if (!skt)
76 return CS_BAD_HANDLE;
77
78 return pccard_reset_card(skt);
79} 65}
80EXPORT_SYMBOL(pcmcia_reset_card); 66EXPORT_SYMBOL(pcmcia_reset_card);