diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:28 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:27 -0400 |
commit | 02d83b5da3efa3c278ce87db2637f3dd6837166d (patch) | |
tree | bd3de850c6a761de0584b5c82e22659b9f4a7482 /include | |
parent | 8766ad0ce8621aa6f0e4a91ef355509cc3364d5b (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 'include')
-rw-r--r-- | include/linux/pnp.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/linux/pnp.h b/include/linux/pnp.h index 1640562f3ebc..a5487b6a4e57 100644 --- a/include/linux/pnp.h +++ b/include/linux/pnp.h | |||
@@ -13,14 +13,11 @@ | |||
13 | #include <linux/errno.h> | 13 | #include <linux/errno.h> |
14 | #include <linux/mod_devicetable.h> | 14 | #include <linux/mod_devicetable.h> |
15 | 15 | ||
16 | #define PNP_MAX_PORT 40 | ||
17 | #define PNP_MAX_MEM 24 | ||
18 | #define PNP_MAX_IRQ 2 | ||
19 | #define PNP_MAX_DMA 2 | ||
20 | #define PNP_NAME_LEN 50 | 16 | #define PNP_NAME_LEN 50 |
21 | 17 | ||
22 | struct pnp_protocol; | 18 | struct pnp_protocol; |
23 | struct pnp_dev; | 19 | struct pnp_dev; |
20 | struct pnp_resource_table; | ||
24 | 21 | ||
25 | /* | 22 | /* |
26 | * Resource Management | 23 | * Resource Management |
@@ -184,13 +181,6 @@ struct pnp_option { | |||
184 | struct pnp_option *next; /* used to chain dependent resources */ | 181 | struct pnp_option *next; /* used to chain dependent resources */ |
185 | }; | 182 | }; |
186 | 183 | ||
187 | struct pnp_resource_table { | ||
188 | struct resource port_resource[PNP_MAX_PORT]; | ||
189 | struct resource mem_resource[PNP_MAX_MEM]; | ||
190 | struct resource dma_resource[PNP_MAX_DMA]; | ||
191 | struct resource irq_resource[PNP_MAX_IRQ]; | ||
192 | }; | ||
193 | |||
194 | /* | 184 | /* |
195 | * Device Management | 185 | * Device Management |
196 | */ | 186 | */ |
@@ -260,7 +250,7 @@ struct pnp_dev { | |||
260 | int capabilities; | 250 | int capabilities; |
261 | struct pnp_option *independent; | 251 | struct pnp_option *independent; |
262 | struct pnp_option *dependent; | 252 | struct pnp_option *dependent; |
263 | struct pnp_resource_table res; | 253 | struct pnp_resource_table *res; |
264 | 254 | ||
265 | char name[PNP_NAME_LEN]; /* contains a human-readable name */ | 255 | char name[PNP_NAME_LEN]; /* contains a human-readable name */ |
266 | unsigned short regs; /* ISAPnP: supported registers */ | 256 | unsigned short regs; /* ISAPnP: supported registers */ |