Re: [PATCH v2] HID: clamp input to logical range if no null state

2017-03-21 Thread Jiri Kosina
On Tue, 14 Mar 2017, Tomasz Kramkowski wrote: > This patch fixes an issue in drivers/hid/hid-input.c where values > outside of the logical range are not clamped when "null state" bit of > the input control is not set. > > This was discussed on the lists [1] and this change stems from the fact > d

Re: [PATCH v2] HID: clamp input to logical range if no null state

2017-03-14 Thread Tomasz Kramkowski
My sincere apologies, I have missed out the two references from the commit message: [1]: http://lkml.kernel.org/r/20170307131036.GA853@gaia.local [2]: https://msdn.microsoft.com/en-us/library/windows/hardware/dn672278(v=vs.85).asp I can re-send but it would be fine if they were simply appended

[PATCH v2] HID: clamp input to logical range if no null state

2017-03-14 Thread Tomasz Kramkowski
This patch fixes an issue in drivers/hid/hid-input.c where values outside of the logical range are not clamped when "null state" bit of the input control is not set. This was discussed on the lists [1] and this change stems from the fact due to the ambiguity of the HID specification it might be ap