aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/pnpacpi/rsparser.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:34:28 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:27 -0400
commit02d83b5da3efa3c278ce87db2637f3dd6837166d (patch)
treebd3de850c6a761de0584b5c82e22659b9f4a7482 /drivers/pnp/pnpacpi/rsparser.c
parent8766ad0ce8621aa6f0e4a91ef355509cc3364d5b (diff)
PNP: make pnp_resource_table private to PNP core
There are no remaining references to the PNP_MAX_* constants or the pnp_resource_table structure outside of the PNP core. Make them private to the PNP core. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/pnpacpi/rsparser.c')
-rw-r--r--drivers/pnp/pnpacpi/rsparser.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/pnp/pnpacpi/rsparser.c b/drivers/pnp/pnpacpi/rsparser.c
index 000a1b39f0b6..2669518b4795 100644
--- a/drivers/pnp/pnpacpi/rsparser.c
+++ b/drivers/pnp/pnpacpi/rsparser.c
@@ -21,6 +21,8 @@
21#include <linux/kernel.h> 21#include <linux/kernel.h>
22#include <linux/acpi.h> 22#include <linux/acpi.h>
23#include <linux/pci.h> 23#include <linux/pci.h>
24#include <linux/pnp.h>
25#include "../base.h"
24#include "pnpacpi.h" 26#include "pnpacpi.h"
25 27
26#ifdef CONFIG_IA64 28#ifdef CONFIG_IA64
@@ -80,7 +82,7 @@ static void pnpacpi_parse_allocated_irqresource(struct pnp_dev *dev,
80 u32 gsi, int triggering, 82 u32 gsi, int triggering,
81 int polarity, int shareable) 83 int polarity, int shareable)
82{ 84{
83 struct pnp_resource_table *res = &dev->res; 85 struct pnp_resource_table *res = dev->res;
84 int i = 0; 86 int i = 0;
85 int irq; 87 int irq;
86 int p, t; 88 int p, t;
@@ -176,7 +178,7 @@ static int dma_flags(int type, int bus_master, int transfer)
176static void pnpacpi_parse_allocated_dmaresource(struct pnp_dev *dev, 178static void pnpacpi_parse_allocated_dmaresource(struct pnp_dev *dev,
177 u32 dma, int flags) 179 u32 dma, int flags)
178{ 180{
179 struct pnp_resource_table *res = &dev->res; 181 struct pnp_resource_table *res = dev->res;
180 int i = 0; 182 int i = 0;
181 static unsigned char warned; 183 static unsigned char warned;
182 184
@@ -202,7 +204,7 @@ static void pnpacpi_parse_allocated_dmaresource(struct pnp_dev *dev,
202static void pnpacpi_parse_allocated_ioresource(struct pnp_dev *dev, 204static void pnpacpi_parse_allocated_ioresource(struct pnp_dev *dev,
203 u64 io, u64 len, int io_decode) 205 u64 io, u64 len, int io_decode)
204{ 206{
205 struct pnp_resource_table *res = &dev->res; 207 struct pnp_resource_table *res = dev->res;
206 int i = 0; 208 int i = 0;
207 static unsigned char warned; 209 static unsigned char warned;
208 210
@@ -230,7 +232,7 @@ static void pnpacpi_parse_allocated_memresource(struct pnp_dev *dev,
230 u64 mem, u64 len, 232 u64 mem, u64 len,
231 int write_protect) 233 int write_protect)
232{ 234{
233 struct pnp_resource_table *res = &dev->res; 235 struct pnp_resource_table *res = dev->res;
234 int i = 0; 236 int i = 0;
235 static unsigned char warned; 237 static unsigned char warned;
236 238