diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-02-15 23:12:34 +0100 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-06-05 16:26:17 +0200 |
commit | b3b2988841ac6215e137e34e38b71acc915d1f00 (patch) | |
tree | a79df9327881a789f22f97ccebb4618008bf8529 /drivers/firewire/fw-device.h | |
parent | 0210b66dd88a2a1e451901b00378a2068b6ccb35 (diff) | |
download | kernel_samsung_smdk4412-b3b2988841ac6215e137e34e38b71acc915d1f00.tar.gz kernel_samsung_smdk4412-b3b2988841ac6215e137e34e38b71acc915d1f00.tar.bz2 kernel_samsung_smdk4412-b3b2988841ac6215e137e34e38b71acc915d1f00.zip |
firewire: share device ID table type with ieee1394
That way, the new firedtv driver will be able to use a single ID table
in builds against ieee1394 core and/or against firewire core.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-device.h')
-rw-r--r-- | drivers/firewire/fw-device.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/drivers/firewire/fw-device.h b/drivers/firewire/fw-device.h index 892dd591627..e973c4361f4 100644 --- a/drivers/firewire/fw-device.h +++ b/drivers/firewire/fw-device.h @@ -24,6 +24,7 @@ #include <linux/idr.h> #include <linux/kernel.h> #include <linux/list.h> +#include <linux/mod_devicetable.h> #include <linux/mutex.h> #include <linux/rwsem.h> #include <linux/sysfs.h> @@ -172,25 +173,11 @@ void fw_csr_iterator_init(struct fw_csr_iterator *ci, u32 *p); int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value); -#define FW_MATCH_VENDOR 0x0001 -#define FW_MATCH_MODEL 0x0002 -#define FW_MATCH_SPECIFIER_ID 0x0004 -#define FW_MATCH_VERSION 0x0008 - -struct fw_device_id { - u32 match_flags; - u32 vendor; - u32 model; - u32 specifier_id; - u32 version; - void *driver_data; -}; - struct fw_driver { struct device_driver driver; /* Called when the parent device sits through a bus reset. */ - void (*update) (struct fw_unit *unit); - const struct fw_device_id *id_table; + void (*update)(struct fw_unit *unit); + const struct ieee1394_device_id *id_table; }; static inline struct fw_driver *fw_driver(struct device_driver *drv) |