diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:33:54 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:16 -0400 |
commit | bda1e4e5a3d976046378cd495a63e1ee0847deec (patch) | |
tree | d646e0057940116440d8f2c53ea7fc225d97a0a0 /drivers/pnp/base.h | |
parent | 25eb846189d20db4114cebf14fee96d69bef4667 (diff) |
PNP: add pnp_alloc_dev()
Add pnp_alloc_dev() to allocate a struct pnp_dev and fill in the
protocol, instance number, and initial PNP ID. Now it is always
valid to use dev_printk() on any pnp_dev pointer.
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h index 9af0a6c7dd4..ff435bd1ca1 100644 --- a/drivers/pnp/base.h +++ b/drivers/pnp/base.h | |||
@@ -2,6 +2,7 @@ extern spinlock_t pnp_lock; | |||
2 | void *pnp_alloc(long size); | 2 | void *pnp_alloc(long size); |
3 | #define PNP_EISA_ID_MASK 0x7fffffff | 3 | #define PNP_EISA_ID_MASK 0x7fffffff |
4 | void pnp_eisa_id_to_string(u32 id, char *str); | 4 | void pnp_eisa_id_to_string(u32 id, char *str); |
5 | struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *, int id, char *pnpid); | ||
5 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id); | 6 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id); |
6 | int pnp_interface_attach_device(struct pnp_dev *dev); | 7 | int pnp_interface_attach_device(struct pnp_dev *dev); |
7 | void pnp_fixup_device(struct pnp_dev *dev); | 8 | void pnp_fixup_device(struct pnp_dev *dev); |