aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/base.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:34:22 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:25 -0400
commitf5d94ff014cb7e6212f40fc6644f3fd68507df33 (patch)
treedc370a5b6167a5d325beb3536309e3953d1976a2 /drivers/pnp/base.h
parentdb9eaeab3e7ab72d773820820f1ba33960ad24c4 (diff)
PNP: pass resources, not indexes, to pnp_check_port(), et al
The caller already has the struct resource pointer, so no need for pnp_check_port(), pnp_check_mem(), etc., to look it up again. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/base.h')
-rw-r--r--drivers/pnp/base.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h
index eb43fc6bff1..e739d4bba42 100644
--- a/drivers/pnp/base.h
+++ b/drivers/pnp/base.h
@@ -12,10 +12,10 @@ void pnp_free_option(struct pnp_option *option);
12int __pnp_add_device(struct pnp_dev *dev); 12int __pnp_add_device(struct pnp_dev *dev);
13void __pnp_remove_device(struct pnp_dev *dev); 13void __pnp_remove_device(struct pnp_dev *dev);
14 14
15int pnp_check_port(struct pnp_dev * dev, int idx); 15int pnp_check_port(struct pnp_dev *dev, struct resource *res);
16int pnp_check_mem(struct pnp_dev * dev, int idx); 16int pnp_check_mem(struct pnp_dev *dev, struct resource *res);
17int pnp_check_irq(struct pnp_dev * dev, int idx); 17int pnp_check_irq(struct pnp_dev *dev, struct resource *res);
18int pnp_check_dma(struct pnp_dev * dev, int idx); 18int pnp_check_dma(struct pnp_dev *dev, struct resource *res);
19 19
20void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); 20void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc);
21 21