diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:33:58 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:17 -0400 |
commit | 6bf2aab24a5dc26bf8274c4b9dbbed8ca99ae82c (patch) | |
tree | 910e6795cf929481cecb00fc5ebad43121beba56 /drivers/pnp/base.h | |
parent | 068076d5517009654376ceda75ff44af0feb9b1d (diff) |
PNP: add pnp_alloc_card()
Add pnp_alloc_card() to allocate a struct pnp_card and fill in the
protocol, instance number, and initial PNP ID. Now it is always
valid to use dev_printk() on any pnp_card 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 37f7d85fc4bc..a83cdcfee165 100644 --- a/drivers/pnp/base.h +++ b/drivers/pnp/base.h | |||
@@ -3,6 +3,7 @@ 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_dev *pnp_alloc_dev(struct pnp_protocol *, int id, char *pnpid); |
6 | struct pnp_card *pnp_alloc_card(struct pnp_protocol *, int id, char *pnpid); | ||
6 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id); | 7 | struct pnp_id *pnp_add_id(struct pnp_dev *dev, char *id); |
7 | struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id); | 8 | struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id); |
8 | int pnp_interface_attach_device(struct pnp_dev *dev); | 9 | int pnp_interface_attach_device(struct pnp_dev *dev); |