diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:09 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:22 -0400 |
commit | f44900020926b2cb06b87f0f52643d6285514fc3 (patch) | |
tree | 081893ba769b0f89e03832995839cfea30fcf5f9 /include | |
parent | 81b5c75f0ed22a93c3da00650d0898eec56e1d62 (diff) |
PNP: add pnp_init_resources(struct pnp_dev *) interface
Add pnp_init_resources(struct pnp_dev *) to replace
pnp_init_resource_table(), which takes a pointer to the
pnp_resource_table itself. Passing only the pnp_dev * reduces
the possibility for error in the caller and removes the
pnp_resource_table implementation detail from the interface.
Even though pnp_init_resource_table() is exported, I did not
export pnp_init_resources() because it is used only by the PNP
core.
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 'include')
-rw-r--r-- | include/linux/pnp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pnp.h b/include/linux/pnp.h index 8d7c9bc2fdbb..1737f071787a 100644 --- a/include/linux/pnp.h +++ b/include/linux/pnp.h | |||
@@ -391,6 +391,7 @@ int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, | |||
391 | int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, | 391 | int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, |
392 | struct pnp_mem *data); | 392 | struct pnp_mem *data); |
393 | void pnp_init_resource_table(struct pnp_resource_table *table); | 393 | void pnp_init_resource_table(struct pnp_resource_table *table); |
394 | void pnp_init_resources(struct pnp_dev *dev); | ||
394 | int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, | 395 | int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, |
395 | int mode); | 396 | int mode); |
396 | int pnp_auto_config_dev(struct pnp_dev *dev); | 397 | int pnp_auto_config_dev(struct pnp_dev *dev); |
@@ -438,6 +439,7 @@ static inline int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_opti | |||
438 | static inline int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_port *data) { return -ENODEV; } | 439 | static inline int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_port *data) { return -ENODEV; } |
439 | static inline int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; } | 440 | static inline int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; } |
440 | static inline void pnp_init_resource_table(struct pnp_resource_table *table) { } | 441 | static inline void pnp_init_resource_table(struct pnp_resource_table *table) { } |
442 | static inline void pnp_init_resources(struct pnp_dev *dev) { } | ||
441 | static inline int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int mode) { return -ENODEV; } | 443 | static inline int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int mode) { return -ENODEV; } |
442 | static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; } | 444 | static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; } |
443 | static inline int pnp_validate_config(struct pnp_dev *dev) { return -ENODEV; } | 445 | static inline int pnp_validate_config(struct pnp_dev *dev) { return -ENODEV; } |