> On Mon, Feb 13, 2012 at 3:20 PM, Przemo Firszt <prz...@firszt.eu> wrote: >> The name reported by Inutos4 WL connected by bluetooth is "PTK-540WL" >> and >> to make it consistent with other Wacom devices it has to be converted to >> "Wacom PTK-540WL". It also makes userland applications aware that it's a >> Wacom >> device. >> >> Signed-off-by: Przemo Firszt <prz...@firszt.eu> >> --- >> drivers/hid/hid-wacom.c | 2 ++ >> 1 files changed, 2 insertions(+), 0 deletions(-) >> >> diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c >> index acab74c..700aa8d 100644 >> --- a/drivers/hid/hid-wacom.c >> +++ b/drivers/hid/hid-wacom.c >> @@ -471,6 +471,7 @@ static int wacom_input_mapped(struct hid_device >> *hdev, struct hid_input *hi, >> input_set_abs_params(input, ABS_DISTANCE, 0, 32, 0, 0); >> break; >> case USB_DEVICE_ID_WACOM_INTUOS4_BLUETOOTH: >> + >> input_set_abs_params(input, ABS_X, 0, 40640, 4, 0); >> input_set_abs_params(input, ABS_Y, 0, 25400, 4, 0); >> input_set_abs_params(input, ABS_PRESSURE, 0, 2047, 0, 0); >> @@ -518,6 +519,7 @@ static int wacom_probe(struct hid_device *hdev, >> wacom_poke(hdev, 1); >> break; >> case USB_DEVICE_ID_WACOM_INTUOS4_BLUETOOTH: >> + sprintf(hdev->name, "%s", "Wacom PTK-540WL"); > > Do you know where this memory is allocated and its size? I've seen it > done this way before but I've never bothered to understand what is > being overwritten. > > Please don't hold up submitting it on this comment though. > It's this [1] field, so we're OK. char name[128]; /* Device name */
[1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=include/linux/hid.h;h=3a95da60fd3e5cda95617fffc824168437373d95;hb=HEAD#l512 cheers, Przemo ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel