Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input

Pull input updates from Dmitry Torokhov:
"Just a few small fixes..."

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
Input: da9052 - fix memory leak in da9052_onkey_probe()
Input: gpio_mouse - use linux/gpio.h rather than asm/gpio.h
Input: trackpoint - use psmouse_fmt() for messages
Input: elantech - v4 is a clickpad, with only one button
Input: elantech - reset touchpad before configuring it
Input: sentelic - filter taps in absolute mode
Input: tps6507x-ts - fix MODULE_ALIAS to match driver name

+28 -13
+2 -1
drivers/input/misc/da9052_onkey.c
··· 95 95 input_dev = input_allocate_device(); 96 96 if (!onkey || !input_dev) { 97 97 dev_err(&pdev->dev, "Failed to allocate memory\n"); 98 - return -ENOMEM; 98 + error = -ENOMEM; 99 + goto err_free_mem; 99 100 } 100 101 101 102 onkey->input = input_dev;
+8 -2
drivers/input/mouse/elantech.c
··· 486 486 unsigned char *packet = psmouse->packet; 487 487 488 488 input_report_key(dev, BTN_LEFT, packet[0] & 0x01); 489 - input_report_key(dev, BTN_RIGHT, packet[0] & 0x02); 490 489 input_mt_report_pointer_emulation(dev, true); 491 490 input_sync(dev); 492 491 } ··· 966 967 if (elantech_set_range(psmouse, &x_min, &y_min, &x_max, &y_max, &width)) 967 968 return -1; 968 969 970 + __set_bit(INPUT_PROP_POINTER, dev->propbit); 969 971 __set_bit(EV_KEY, dev->evbit); 970 972 __set_bit(EV_ABS, dev->evbit); 971 973 __clear_bit(EV_REL, dev->evbit); ··· 1017 1017 */ 1018 1018 psmouse_warn(psmouse, "couldn't query resolution data.\n"); 1019 1019 } 1020 - 1020 + /* v4 is clickpad, with only one button. */ 1021 + __set_bit(INPUT_PROP_BUTTONPAD, dev->propbit); 1022 + __clear_bit(BTN_RIGHT, dev->keybit); 1021 1023 __set_bit(BTN_TOOL_QUADTAP, dev->keybit); 1022 1024 /* For X to recognize me as touchpad. */ 1023 1025 input_set_abs_params(dev, ABS_X, x_min, x_max, 0, 0); ··· 1247 1245 */ 1248 1246 static int elantech_reconnect(struct psmouse *psmouse) 1249 1247 { 1248 + psmouse_reset(psmouse); 1249 + 1250 1250 if (elantech_detect(psmouse, 0)) 1251 1251 return -1; 1252 1252 ··· 1327 1323 psmouse->private = etd = kzalloc(sizeof(struct elantech_data), GFP_KERNEL); 1328 1324 if (!etd) 1329 1325 return -ENOMEM; 1326 + 1327 + psmouse_reset(psmouse); 1330 1328 1331 1329 etd->parity[0] = 1; 1332 1330 for (i = 1; i < 256; i++)
+1 -1
drivers/input/mouse/gpio_mouse.c
··· 12 12 #include <linux/module.h> 13 13 #include <linux/platform_device.h> 14 14 #include <linux/input-polldev.h> 15 + #include <linux/gpio.h> 15 16 #include <linux/gpio_mouse.h> 16 17 17 - #include <asm/gpio.h> 18 18 19 19 /* 20 20 * Timer function which is run every scan_ms ms when the device is opened.
+8
drivers/input/mouse/sentelic.c
··· 741 741 } 742 742 } else { 743 743 /* SFAC packet */ 744 + if ((packet[0] & (FSP_PB0_LBTN|FSP_PB0_PHY_BTN)) == 745 + FSP_PB0_LBTN) { 746 + /* On-pad click in SFAC mode should be handled 747 + * by userspace. On-pad clicks in MFMC mode 748 + * are real clickpad clicks, and not ignored. 749 + */ 750 + packet[0] &= ~FSP_PB0_LBTN; 751 + } 744 752 745 753 /* no multi-finger information */ 746 754 ad->last_mt_fgr = 0;
+8 -6
drivers/input/mouse/trackpoint.c
··· 304 304 return 0; 305 305 306 306 if (trackpoint_read(&psmouse->ps2dev, TP_EXT_BTN, &button_info)) { 307 - printk(KERN_WARNING "trackpoint.c: failed to get extended button data\n"); 307 + psmouse_warn(psmouse, "failed to get extended button data\n"); 308 308 button_info = 0; 309 309 } 310 310 ··· 326 326 327 327 error = sysfs_create_group(&ps2dev->serio->dev.kobj, &trackpoint_attr_group); 328 328 if (error) { 329 - printk(KERN_ERR 330 - "trackpoint.c: failed to create sysfs attributes, error: %d\n", 331 - error); 329 + psmouse_err(psmouse, 330 + "failed to create sysfs attributes, error: %d\n", 331 + error); 332 332 kfree(psmouse->private); 333 333 psmouse->private = NULL; 334 334 return -1; 335 335 } 336 336 337 - printk(KERN_INFO "IBM TrackPoint firmware: 0x%02x, buttons: %d/%d\n", 338 - firmware_id, (button_info & 0xf0) >> 4, button_info & 0x0f); 337 + psmouse_info(psmouse, 338 + "IBM TrackPoint firmware: 0x%02x, buttons: %d/%d\n", 339 + firmware_id, 340 + (button_info & 0xf0) >> 4, button_info & 0x0f); 339 341 340 342 return 0; 341 343 }
+1 -3
drivers/input/touchscreen/tps6507x-ts.c
··· 1 1 /* 2 - * drivers/input/touchscreen/tps6507x_ts.c 3 - * 4 2 * Touchscreen driver for the tps6507x chip. 5 3 * 6 4 * Copyright (c) 2009 RidgeRun (todd.fischer@ridgerun.com) ··· 374 376 MODULE_AUTHOR("Todd Fischer <todd.fischer@ridgerun.com>"); 375 377 MODULE_DESCRIPTION("TPS6507x - TouchScreen driver"); 376 378 MODULE_LICENSE("GPL v2"); 377 - MODULE_ALIAS("platform:tps6507x-tsc"); 379 + MODULE_ALIAS("platform:tps6507x-ts");