1
0
Fork 0
alistair23-linux/drivers
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
..
acorn fix file specification in comments 2006-10-03 23:01:26 +02:00
acpi fix drivers/acpi/Kconfig typos 2006-10-03 22:24:43 +02:00
amba [PATCH] 64bit resource: fix up printks for resources in misc drivers 2006-06-27 09:23:59 -07:00
ata [PATCH] pata: teach ali about rev C8, keep pcmcia driver in sync 2006-10-04 08:15:15 -07:00
atm [ATM]: [zatm] always *pcr in alloc_shaper() 2006-10-04 00:31:06 -07:00
base [PATCH] hot-add-mem x86_64: use CONFIG_MEMORY_HOTPLUG_SPARSE 2006-10-01 00:39:18 -07:00
block Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/configh 2006-10-04 09:59:57 -07:00
bluetooth [Bluetooth] Code cleanup for the HCI UART driver 2006-09-28 18:01:30 -07:00
cdrom fix file specification in comments 2006-10-03 23:01:26 +02:00
char Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/configh 2006-10-04 09:59:57 -07:00
clocksource [PATCH] scx200_hrt: fix precedence bug manifesting as 27x clock in 1 MHz mode 2006-10-04 07:55:14 -07:00
connector [PATCH] Process Events: Fix biarch compatibility issue. use __u64 timestamp 2006-07-31 13:28:36 -07:00
cpufreq [PATCH] cpufreq: make the transition_notifier chain use SRCU 2006-10-04 07:55:30 -07:00
crypto [CRYPTO] padlock: Convert padlock-sha to use crypto_hash 2006-09-21 11:46:22 +10:00
dio
dma [I/OAT]: Remove pci_module_init() from Intel I/OAT DMA engine 2006-07-21 14:50:13 -07:00
edac [PATCH] drivers/edac/edac_mc.h must #include <linux/platform_device.h> 2006-08-06 08:57:46 -07:00
eisa [PATCH] EISA bus MODALIAS attributes support 2006-09-27 08:26:19 -07:00
fc4 [PATCH] Remove ->rq_status from struct request 2006-09-30 20:29:23 +02:00
firmware fix file specification in comments 2006-10-03 23:01:26 +02:00
hwmon Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
i2c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
ide Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
ieee1394 Fix several typos in drivers/ 2006-10-03 22:31:37 +02:00
infiniband Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
input more misc typo fixes 2006-10-03 22:34:14 +02:00
isdn [PATCH] hisax niccy cleanup 2006-10-04 07:55:15 -07:00
leds Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
macintosh fix file specification in comments 2006-10-03 23:01:26 +02:00
mca
md BUG_ON cleanup for drivers/md/ 2006-10-03 23:33:23 +02:00
media V4L/DVB (4712): Fix warning when compiling on x86_i64 2006-10-04 08:15:53 -03:00
message Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2006-10-04 18:57:35 -07:00
mfd [PATCH] ucb1x00-ts: handle errors from input_register_device() 2006-09-29 09:18:10 -07:00
misc [PATCH] mmc: driver for TI FlashMedia card reader - Kconfig/Makefile 2006-10-04 07:55:14 -07:00
mmc [PATCH] mmc: properly use the new multi block-write error handling 2006-10-04 07:55:15 -07:00
mtd fix file specification in comments 2006-10-03 23:01:26 +02:00
net Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
nubus Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
oprofile [PATCH] inode-diet: Eliminate i_blksize from the inode structure 2006-09-27 08:26:18 -07:00
parisc [PA-RISC] Fix sba_iommu compilation 2006-10-05 01:48:17 +00:00
parport parport: Remove space in function calls 2006-10-03 23:25:14 +02:00
pci [PATCH] htirq: tidy up the htirq code 2006-10-04 07:55:30 -07:00
pcmcia pccard_store_cis: fix wrong error handling 2006-10-01 13:17:44 -07:00
pnp Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2006-10-03 08:52:26 -07:00
rapidio Fix several typos in drivers/ 2006-10-03 22:31:37 +02:00
rtc Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/configh 2006-10-04 09:59:57 -07:00
s390 [S390] cio: improve unit check handling for internal operations 2006-10-04 20:02:30 +02:00
sbus remove mentionings of devfs in documentation 2006-10-03 22:17:48 +02:00
scsi Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2006-10-04 18:57:35 -07:00
serial [PATCH] atmel_serial: Fix roundoff error in atmel_console_get_options 2006-10-04 10:25:06 -07:00
sh
sn [PATCH] irq-flags: misc drivers: Use the new IRQF_ constants 2006-07-02 13:58:50 -07:00
spi Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
tc [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
telephony Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/devfs-2.6 2006-06-29 14:19:21 -07:00
usb [PATCH] itmtouch: fix inverted flag to indicate touch location correctly, correct white space 2006-10-04 19:44:36 -07:00
video Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/configh 2006-10-04 09:59:57 -07:00
w1 Fix several typos in drivers/ 2006-10-03 22:31:37 +02:00
zorro Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
Kconfig Move libata to drivers/ata. 2006-08-10 07:31:37 -04:00
Makefile Move libata to drivers/ata. 2006-08-10 07:31:37 -04:00