diff mbox

Fix for N-trig touch panel with recent firmware

Message ID 20100406202258.837F19520E@smtp.lii-enac.fr (mailing list archive)
State New, archived
Headers show

Commit Message

Stephane Chatty April 6, 2010, 8:22 p.m. UTC
None
diff mbox

Patch

diff -rupN a/drivers/hid/hid-ntrig.c b/drivers/hid/hid-ntrig.c
--- a/drivers/hid/hid-ntrig.c	2010-03-20 02:17:57.000000000 +0100
+++ b/drivers/hid/hid-ntrig.c	2010-04-02 01:06:11.000000000 +0200
@@ -1,8 +1,8 @@ 
 /*
  *  HID driver for N-Trig touchscreens
  *
- *  Copyright (c) 2008 Rafi Rubin
- *  Copyright (c) 2009 Stephane Chatty
+ *  Copyright (c) 2008-2010 Rafi Rubin
+ *  Copyright (c) 2009-2010 Stephane Chatty
  *
  */
 
@@ -16,6 +16,8 @@ 
 #include <linux/device.h>
 #include <linux/hid.h>
 #include <linux/module.h>
+#include <linux/usb.h>
+#include "usbhid/usbhid.h"
 
 #include "hid-ids.h"
 
@@ -285,6 +287,7 @@  static int ntrig_probe(struct hid_device
 	struct ntrig_data *nd;
 	struct hid_input *hidinput;
 	struct input_dev *input;
+	struct hid_report *report;
 
 	if (id->driver_data)
 		hdev->quirks |= HID_QUIRK_MULTI_INPUT;
@@ -348,6 +351,11 @@  static int ntrig_probe(struct hid_device
 		}
 	}
 
+	report = hdev->report_enum[HID_FEATURE_REPORT].report_id_hash[0x0a]; 
+	if (report)
+		usbhid_submit_report(hdev, report, USB_DIR_OUT);
+
+
 	return 0;
 err_free:
 	kfree(nd);