aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/isapnp
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:34:05 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:21 -0400
commit59284cb4099411bc6f4915a5a4cb76414440c447 (patch)
tree2965bbad48655a6c1e0bf2ef5d51994ab28d627d /drivers/pnp/isapnp
parentc1caf06ccfd3a4efd4b489f89bcdabd2362f31d0 (diff)
PNP: remove pnp_resource_table from internal get/set interfaces
When we call protocol->get() and protocol->set() methods, we currently supply pointers to both the pnp_dev and the pnp_resource_table even though the pnp_resource_table should always be the one associated with the pnp_dev. This removes the pnp_resource_table arguments to make it clear that these methods only operate on the specified pnp_dev. 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/isapnp')
-rw-r--r--drivers/pnp/isapnp/core.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/pnp/isapnp/core.c b/drivers/pnp/isapnp/core.c
index 38ff64dce9c0..1ae3d8996156 100644
--- a/drivers/pnp/isapnp/core.c
+++ b/drivers/pnp/isapnp/core.c
@@ -976,21 +976,20 @@ static int isapnp_read_resources(struct pnp_dev *dev,
976 return 0; 976 return 0;
977} 977}
978 978
979static int isapnp_get_resources(struct pnp_dev *dev, 979static int isapnp_get_resources(struct pnp_dev *dev)
980 struct pnp_resource_table *res)
981{ 980{
982 int ret; 981 int ret;
983 982
984 pnp_init_resource_table(res); 983 pnp_init_resource_table(&dev->res);
985 isapnp_cfg_begin(dev->card->number, dev->number); 984 isapnp_cfg_begin(dev->card->number, dev->number);
986 ret = isapnp_read_resources(dev, res); 985 ret = isapnp_read_resources(dev, &dev->res);
987 isapnp_cfg_end(); 986 isapnp_cfg_end();
988 return ret; 987 return ret;
989} 988}
990 989
991static int isapnp_set_resources(struct pnp_dev *dev, 990static int isapnp_set_resources(struct pnp_dev *dev)
992 struct pnp_resource_table *res)
993{ 991{
992 struct pnp_resource_table *res = &dev->res;
994 int tmp; 993 int tmp;
995 994
996 isapnp_cfg_begin(dev->card->number, dev->number); 995 isapnp_cfg_begin(dev->card->number, dev->number);