aboutsummaryrefslogtreecommitdiffstats
path: root/include/pcmcia/cistpl.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-07-29 02:38:30 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-22 18:46:35 -0400
commita804b574e6c7236222593046fc2b1b8bd0298fce (patch)
tree63e8e0805e61337be328a2e25c439317bd96914a /include/pcmcia/cistpl.h
parent6e86841d05f371b5b9b86ce76c02aaee83352298 (diff)
pcmcia: add pcmcia_loop_config() helper
By calling pcmcia_loop_config(), a pcmcia driver can iterate over all available configuration options. During a driver's probe() phase, one doesn't need to use pcmcia_get_{first,next}_tuple, pcmcia_get_tuple_data and pcmcia_parse_tuple directly in most if not all cases. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia/cistpl.h')
-rw-r--r--include/pcmcia/cistpl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/pcmcia/cistpl.h b/include/pcmcia/cistpl.h
index e2e10c1e9a06..b2eb914a18df 100644
--- a/include/pcmcia/cistpl.h
+++ b/include/pcmcia/cistpl.h
@@ -613,4 +613,10 @@ int pccard_validate_cis(struct pcmcia_socket *s, unsigned int function, unsigned
613#define pcmcia_validate_cis(p_dev, info) \ 613#define pcmcia_validate_cis(p_dev, info) \
614 pccard_validate_cis(p_dev->socket, p_dev->func, info) 614 pccard_validate_cis(p_dev->socket, p_dev->func, info)
615 615
616int pcmcia_loop_config(struct pcmcia_device *p_dev,
617 int (*conf_check) (struct pcmcia_device *p_dev,
618 cistpl_cftable_entry_t *cf,
619 void *priv_data),
620 void *priv_data);
621
616#endif /* LINUX_CISTPL_H */ 622#endif /* LINUX_CISTPL_H */