android_kernel_xiaomi_sm8350/drivers/usb/input
Mark Assad 77dc2db6d1 [PATCH] itmtouch: fix inverted flag to indicate touch location correctly, correct white space
There is a bug in the current version of the itmtouch USB touchscreen
driver.  The if statment that checks if pressure is being applied to the
touch screen is now missing a ! (not), so events are no longer being
reported correctly.

The original source code for this line was as follows:

	#define UCP(x) ((unsigned char*)(x))
	#define UCOM(x,y,z) ((UCP((x)->transfer_buffer)[y]) & (z))

	...
	if (!UCOM(urb, 7, 0x20)) {

And was cleaned to:

	unsigned char *data = urb->transfer_buffer;
	....
	 if (data[7] & 0x20) {

(note the lack of '!')

This has been tested on an LG L1510BF and an LG1510SF touch screen.

Signed-off-by: Mark Assad <massad@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-04 19:44:36 -07:00
..
acecad.c USB: acecad: Use usb_endpoint_* functions. 2006-09-27 11:58:53 -07:00
aiptek.c
appletouch.c USB: appletouch: Use usb_endpoint_* functions. 2006-09-27 11:58:53 -07:00
ati_remote2.c
ati_remote.c USB: ati_remote: Use usb_endpoint_* functions. 2006-09-27 11:58:53 -07:00
hid-core.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2006-10-02 08:20:33 -07:00
hid-debug.h
hid-ff.c
hid-input.c
hid-lgff.c
hid-pidff.c
hid-tmff.c
hid-zpff.c
hid.h
hiddev.c USB: Make file operations structs in drivers/usb const. 2006-09-27 11:58:52 -07:00
itmtouch.c [PATCH] itmtouch: fix inverted flag to indicate touch location correctly, correct white space 2006-10-04 19:44:36 -07:00
kbtab.c
Kconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2006-10-02 08:20:33 -07:00
keyspan_remote.c USB: keyspan_remote: Use usb_endpoint_* functions. 2006-09-27 11:58:53 -07:00
Makefile Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2006-10-02 08:20:33 -07:00
map_to_7segment.h
mtouchusb.c USB: Dealias -110 code (more complete) 2006-09-27 11:59:00 -07:00
powermate.c USB: powermate: Use usb_endpoint_* functions. 2006-09-27 11:58:53 -07:00
touchkitusb.c USB: Dealias -110 code (more complete) 2006-09-27 11:59:00 -07:00
trancevibrator.c USB: add PlayStation 2 Trance Vibrator driver 2006-09-27 11:58:59 -07:00
usbkbd.c
usbmouse.c USB: usb/input/usbmouse.c: whitespace cleanup 2006-09-27 11:58:57 -07:00
usbtouchscreen.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
wacom_sys.c
wacom_wac.c
wacom_wac.h
wacom.h
xpad.c
yealink.c USB: fix __must_check warnings in drivers/usb/input/ 2006-09-27 11:58:58 -07:00
yealink.h