Commit 3f0f5c1c authored by Adam Belay's avatar Adam Belay

[PNP] Move ID declarations

This patch moves the PnP ID declarations to mod_devicetable.h like
most of the other buses.  It is from Takashi Iwai <tiwai@suse.de>.
parent c9451514
...@@ -148,4 +148,21 @@ struct ccw_device_id { ...@@ -148,4 +148,21 @@ struct ccw_device_id {
#define CCW_DEVICE_ID_MATCH_DEVICE_MODEL 0x08 #define CCW_DEVICE_ID_MATCH_DEVICE_MODEL 0x08
#define PNP_ID_LEN 8
#define PNP_MAX_DEVICES 8
struct pnp_device_id {
__u8 id[PNP_ID_LEN];
kernel_ulong_t driver_data;
};
struct pnp_card_device_id {
__u8 id[PNP_ID_LEN];
kernel_ulong_t driver_data;
struct {
__u8 id[PNP_ID_LEN];
} devs[PNP_MAX_DEVICES];
};
#endif /* LINUX_MOD_DEVICETABLE_H */ #endif /* LINUX_MOD_DEVICETABLE_H */
...@@ -12,13 +12,12 @@ ...@@ -12,13 +12,12 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/mod_devicetable.h>
#define PNP_MAX_PORT 8 #define PNP_MAX_PORT 8
#define PNP_MAX_MEM 4 #define PNP_MAX_MEM 4
#define PNP_MAX_IRQ 2 #define PNP_MAX_IRQ 2
#define PNP_MAX_DMA 2 #define PNP_MAX_DMA 2
#define PNP_MAX_DEVICES 8
#define PNP_ID_LEN 8
#define PNP_NAME_LEN 50 #define PNP_NAME_LEN 50
struct pnp_protocol; struct pnp_protocol;
...@@ -287,19 +286,6 @@ struct pnp_id { ...@@ -287,19 +286,6 @@ struct pnp_id {
struct pnp_id * next; struct pnp_id * next;
}; };
struct pnp_device_id {
char id[PNP_ID_LEN];
unsigned long driver_data; /* data private to the driver */
};
struct pnp_card_device_id {
char id[PNP_ID_LEN];
unsigned long driver_data; /* data private to the driver */
struct {
char id[PNP_ID_LEN];
} devs[PNP_MAX_DEVICES]; /* logical devices */
};
struct pnp_driver { struct pnp_driver {
char * name; char * name;
const struct pnp_device_id *id_table; const struct pnp_device_id *id_table;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment