[PATCH 1/2] Export hid_field_extract()

2015-05-30 Thread Goffredo Baroncelli
From: Goffredo Baroncelli Rename the function extract() to hid_field_extract(), make it external linkage to allow the use from other modules. Signed-off-by: Goffredo Baroncelli --- drivers/hid/hid-core.c | 11 ++- include/linux/hid.h| 2 ++ 2 files changed, 8 insertions(+), 5 dele

[PATCH 2/2] Add driver for mouse logitech M560

2015-05-30 Thread Goffredo Baroncelli
From: Goffredo Baroncelli The Logitech M560 is a wireless mouse designed for windows 8 which uses the unifying receiver. Compared to a standard one, some buttons (the middle one and the two ones placed on the side) are bound to a key combination instead of a generating classic "mouse" button even

[PATCH V6] Add support for mouse logitech m560

2015-05-30 Thread Goffredo Baroncelli
Hi All, This is the 6th attempt for a Logitech mouse M560 hid driver. On the basis of the feedback received, I made some changes in the code: v6: - hid-core.c: rename extract() to hid_field_extract() and make it linkage external - hid-logitech-hidpp.c: use hid_field_extract() instead of hidpp

Re: [PATCH] psmouse - focaltech report finger width to userspace

2015-05-30 Thread Dmitry Tunin
30.05.2015 02:37, Dmitry Torokhov пишет: > On Sat, May 30, 2015 at 02:00:59AM +0300, Dmitry Tunin wrote: >> Focaltech touchpads report finger width in packet[5] of absolute packet. >> Range for width in raw format is 0x10 - 0x70. Second half-byte is always 0. >> 0xff is reported, when a large con

[PATCH v2] psmouse - focaltech report finger width to userspace

2015-05-30 Thread Dmitry Tunin
Focaltech touchpads report finger width in packet[5] of absolute packet. Range for width in raw format is 0x10 - 0x70. Second half-byte is always 0. 0xff is reported, when a large contact area is detected. This can be handled in userspace. Signed-off-by: Dmitry Tunin --- drivers/input/mouse/foca