linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] usbhid: create hid-quirks.h
@ 2007-04-11  6:49 Paul Walmsley
  0 siblings, 0 replies; only message in thread
From: Paul Walmsley @ 2007-04-11  6:49 UTC (permalink / raw)
  To: linux-input

From: Paul Walmsley <paul@booyaka.com>

Move the HID quirks #defines from hid.h into their own header file,
hid-quirks.h.


Signed-off-by: Paul Walmsley <paul@booyaka.com>

---
  drivers/usb/input/hid-core.c |    1 +
  drivers/usb/input/hiddev.c   |    1 +
  include/linux/hid-quirks.h   |   31 +++++++++++++++++++++++++++++++
  include/linux/hid.h          |   27 ---------------------------
  net/bluetooth/hidp/core.c    |    1 +
  5 files changed, 34 insertions(+), 27 deletions(-)

Index: linux/include/linux/hid-quirks.h
===================================================================
--- /dev/null
+++ linux/include/linux/hid-quirks.h
@@ -0,0 +1,31 @@
+#ifndef __HID_QUIRKS_H
+#define __HID_QUIRKS_H
+
+/*
+ * HID device quirks.
+ */
+
+#define HID_QUIRK_INVERT			0x00000001
+#define HID_QUIRK_NOTOUCH			0x00000002
+#define HID_QUIRK_IGNORE			0x00000004
+#define HID_QUIRK_NOGET				0x00000008
+#define HID_QUIRK_HIDDEV			0x00000010
+#define HID_QUIRK_BADPAD			0x00000020
+#define HID_QUIRK_MULTI_INPUT			0x00000040
+#define HID_QUIRK_2WHEEL_MOUSE_HACK_7		0x00000080
+#define HID_QUIRK_2WHEEL_MOUSE_HACK_5		0x00000100
+#define HID_QUIRK_2WHEEL_MOUSE_HACK_ON		0x00000200
+#define HID_QUIRK_MIGHTYMOUSE			0x00000400
+#define HID_QUIRK_CYMOTION			0x00000800
+#define HID_QUIRK_POWERBOOK_HAS_FN		0x00001000
+#define HID_QUIRK_POWERBOOK_FN_ON		0x00002000
+#define HID_QUIRK_INVERT_HWHEEL			0x00004000
+#define HID_QUIRK_POWERBOOK_ISO_KEYBOARD        0x00008000
+#define HID_QUIRK_BAD_RELATIVE_KEYS		0x00010000
+#define HID_QUIRK_SKIP_OUTPUT_REPORTS		0x00020000
+#define HID_QUIRK_IGNORE_MOUSE			0x00040000
+#define HID_QUIRK_SONY_PS3_CONTROLLER		0x00080000
+#define HID_QUIRK_LOGITECH_S510_DESCRIPTOR	0x00100000
+#define HID_QUIRK_DUPLICATE_USAGES		0x00200000
+
+#endif
Index: linux/include/linux/hid.h
===================================================================
--- linux.orig/include/linux/hid.h
+++ linux/include/linux/hid.h
@@ -244,33 +244,6 @@ struct hid_item {
  #define HID_FEATURE_REPORT	2

  /*
- * HID device quirks.
- */
-
-#define HID_QUIRK_INVERT			0x00000001
-#define HID_QUIRK_NOTOUCH			0x00000002
-#define HID_QUIRK_IGNORE			0x00000004
-#define HID_QUIRK_NOGET				0x00000008
-#define HID_QUIRK_HIDDEV			0x00000010
-#define HID_QUIRK_BADPAD			0x00000020
-#define HID_QUIRK_MULTI_INPUT			0x00000040
-#define HID_QUIRK_2WHEEL_MOUSE_HACK_7		0x00000080
-#define HID_QUIRK_2WHEEL_MOUSE_HACK_5		0x00000100
-#define HID_QUIRK_2WHEEL_MOUSE_HACK_ON		0x00000200
-#define HID_QUIRK_MIGHTYMOUSE			0x00000400
-#define HID_QUIRK_CYMOTION			0x00000800
-#define HID_QUIRK_POWERBOOK_HAS_FN		0x00001000
-#define HID_QUIRK_POWERBOOK_FN_ON		0x00002000
-#define HID_QUIRK_INVERT_HWHEEL			0x00004000
-#define HID_QUIRK_POWERBOOK_ISO_KEYBOARD        0x00008000
-#define HID_QUIRK_BAD_RELATIVE_KEYS		0x00010000
-#define HID_QUIRK_SKIP_OUTPUT_REPORTS		0x00020000
-#define HID_QUIRK_IGNORE_MOUSE			0x00040000
-#define HID_QUIRK_SONY_PS3_CONTROLLER		0x00080000
-#define HID_QUIRK_LOGITECH_S510_DESCRIPTOR	0x00100000
-#define HID_QUIRK_DUPLICATE_USAGES		0x00200000
-
-/*
   * This is the global environment of the parser. This information is
   * persistent for main-items. The global environment can be saved and
   * restored with PUSH/POP statements.
Index: linux/drivers/usb/input/hid-core.c
===================================================================
--- linux.orig/drivers/usb/input/hid-core.c
+++ linux/drivers/usb/input/hid-core.c
@@ -32,6 +32,7 @@
  #include <linux/hid.h>
  #include <linux/hiddev.h>
  #include <linux/hid-debug.h>
+#include <linux/hid-quirks.h>
  #include "usbhid.h"

  /*
Index: linux/net/bluetooth/hidp/core.c
===================================================================
--- linux.orig/net/bluetooth/hidp/core.c
+++ linux/net/bluetooth/hidp/core.c
@@ -39,6 +39,7 @@

  #include <linux/input.h>
  #include <linux/hid.h>
+#include <linux/hid-quirks.h>

  #include <net/bluetooth/bluetooth.h>
  #include <net/bluetooth/hci_core.h>
Index: linux/drivers/usb/input/hiddev.c
===================================================================
--- linux.orig/drivers/usb/input/hiddev.c
+++ linux/drivers/usb/input/hiddev.c
@@ -34,6 +34,7 @@
  #include <linux/usb.h>
  #include <linux/hid.h>
  #include <linux/hiddev.h>
+#include <linux/hid-quirks.h>
  #include "usbhid.h"

  #ifdef CONFIG_USB_DYNAMIC_MINORS

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-11  6:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-11  6:49 [PATCH 1/7] usbhid: create hid-quirks.h Paul Walmsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).