diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2006-12-12 17:46:47 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2006-12-12 17:46:47 -0500 |
commit | d4b87598e940053fa22020dcdc6384827b4fc58d (patch) | |
tree | 9ea5d130ba22e50870a7c2f71fe72714ff7d77a2 /drivers/char | |
parent | 3263263f7091eccab6fdc23f28f09b17c0466629 (diff) |
[WATCHDOG] pcwd_usb.c generic HID include file
Now that the generic HID layer created include/linux/hid.h
we can use the HID_REQ_SET_REPORT and HID_DT_REPORT defines
directly from that include file.
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/watchdog/pcwd_usb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/char/watchdog/pcwd_usb.c b/drivers/char/watchdog/pcwd_usb.c index 61138726b501..2da5ac99687c 100644 --- a/drivers/char/watchdog/pcwd_usb.c +++ b/drivers/char/watchdog/pcwd_usb.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <asm/uaccess.h> | 42 | #include <asm/uaccess.h> |
43 | #include <linux/usb.h> | 43 | #include <linux/usb.h> |
44 | #include <linux/mutex.h> | 44 | #include <linux/mutex.h> |
45 | #include <linux/hid.h> /* For HID_REQ_SET_REPORT & HID_DT_REPORT */ | ||
45 | 46 | ||
46 | 47 | ||
47 | #ifdef CONFIG_USB_DEBUG | 48 | #ifdef CONFIG_USB_DEBUG |
@@ -109,10 +110,6 @@ MODULE_DEVICE_TABLE (usb, usb_pcwd_table); | |||
109 | #define CMD_ENABLE_WATCHDOG 0x30 /* Enable / Disable Watchdog */ | 110 | #define CMD_ENABLE_WATCHDOG 0x30 /* Enable / Disable Watchdog */ |
110 | #define CMD_DISABLE_WATCHDOG CMD_ENABLE_WATCHDOG | 111 | #define CMD_DISABLE_WATCHDOG CMD_ENABLE_WATCHDOG |
111 | 112 | ||
112 | /* Some defines that I like to be somewhere else like include/linux/usb_hid.h */ | ||
113 | #define HID_REQ_SET_REPORT 0x09 | ||
114 | #define HID_DT_REPORT (USB_TYPE_CLASS | 0x02) | ||
115 | |||
116 | /* We can only use 1 card due to the /dev/watchdog restriction */ | 113 | /* We can only use 1 card due to the /dev/watchdog restriction */ |
117 | static int cards_found; | 114 | static int cards_found; |
118 | 115 | ||