<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/input/joystick, branch v4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.2</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-08-03T21:11:45Z</updated>
<entry>
<title>Input: turbografx - fix potential out of bound access</title>
<updated>2015-08-03T21:11:45Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2015-07-30T18:01:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c20bc5502d151ca731ebc672b95aa77e2bf32c8c'/>
<id>urn:sha1:c20bc5502d151ca731ebc672b95aa77e2bf32c8c</id>
<content type='text'>
Patch 17dd3f0f7aa7: "[PATCH] drivers/input/joystick: convert to dynamic
input_dev allocation" from Sep 15, 2005, leads to the following static
checker warning:

        drivers/input/joystick/turbografx.c:235 tgfx_probe()
        error: buffer overflow 'tgfx_buttons' 5 &lt;= 5

drivers/input/joystick/turbografx.c
   195          for (i = 0; i &lt; n_devs; i++) {
   196                  if (n_buttons[i] &lt; 1)
   197                          continue;
   198
   199                  if (n_buttons[i] &gt; 6) {
                            ^^^^^^^^^^^^^^^^
Possibly off by one.  &gt;= 6.

Let's change the upper value to ARRAY_SIZE(tgfx_buttons) to ensure we do
not reach past the end of the array.

Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: xpad - re-send LED command on present event</title>
<updated>2015-06-22T21:24:58Z</updated>
<author>
<name>Pavel Rojtberg</name>
<email>rojtberg@gmail.com</email>
</author>
<published>2015-06-22T21:11:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=cae705baa40b2c20de8f9bb79ef4bcc6b2418c7c'/>
<id>urn:sha1:cae705baa40b2c20de8f9bb79ef4bcc6b2418c7c</id>
<content type='text'>
The controller only receives commands when its present. So for the
correct LED to be lit the LED command has to be sent on the present
event.

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: xpad - set the LEDs properly on XBox Wireless controllers</title>
<updated>2015-06-22T21:24:57Z</updated>
<author>
<name>Pierre-Loup A. Griffais</name>
<email>pgriffais@valvesoftware.com</email>
</author>
<published>2015-06-22T21:10:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=75b7f05d2798ee3a1cc5bbdd54acd0e318a80396'/>
<id>urn:sha1:75b7f05d2798ee3a1cc5bbdd54acd0e318a80396</id>
<content type='text'>
Based on Patch by Pierre-Loup A. Griffais &lt;pgriffais@valvesoftware.com&gt;:
Add the logic to set the LEDs on XBox Wireless controllers.  Command
sequence found by sniffing the Windows data stream when plugging the
device in.

Updated based on comments on linux-input:
unify codepaths in xpad_send_led_command for wired/ wireless controller.
Also document command values for clarification.
All values tested on Xbox 360 Wireless Controller.

Signed-off-by: Pavel Rojtberg &lt;rojtberg@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>Input: xpad - add rumble support for Xbox One controller</title>
<updated>2015-04-15T00:01:53Z</updated>
<author>
<name>Ming-ting Yao Wei</name>
<email>mwei@lxde.org</email>
</author>
<published>2015-04-14T23:59:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0604949ce3b9a59cff419daf706272620a9a0df0'/>
<id>urn:sha1:0604949ce3b9a59cff419daf706272620a9a0df0</id>
<content type='text'>
This adds rumble support for Xbox One controller by sending continuous
rumble command. Trigger button rumbling is not yet implemented.

Signed-off-by: Ming-ting Yao Wei &lt;mwei@lxde.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: adi - remove an unnecessary check</title>
<updated>2015-02-12T07:07:13Z</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2015-02-11T18:10:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=de3748f66f21642543e6f1acb1002937a8d2de2e'/>
<id>urn:sha1:de3748f66f21642543e6f1acb1002937a8d2de2e</id>
<content type='text'>
The input_free_device() function tests whether its argument is NULL and
then returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'next' into for-linus</title>
<updated>2014-12-16T04:32:42Z</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2014-12-16T04:32:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f20c86cd75f1c8c728dafd0218645ff3c5e8545d'/>
<id>urn:sha1:f20c86cd75f1c8c728dafd0218645ff3c5e8545d</id>
<content type='text'>
Prepare input updates for 3.19.
</content>
</entry>
<entry>
<title>Input: initialize device counter variables with -1</title>
<updated>2014-12-03T23:27:17Z</updated>
<author>
<name>Aniroop Mathur</name>
<email>aniroop.mathur@gmail.com</email>
</author>
<published>2014-12-03T22:27:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=939ffb1712890ee22146d2dfc24adbc7da6afa84'/>
<id>urn:sha1:939ffb1712890ee22146d2dfc24adbc7da6afa84</id>
<content type='text'>
Let's initialize atomic_t variables keeping track of number of various
devices created so far with -1 in order to avoid extra subtraction
operation.

Signed-off-by: Aniroop Mathur &lt;aniroop.mathur@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - use proper endpoint type</title>
<updated>2014-11-25T08:42:19Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2014-11-25T08:38:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a1f9a4072655843fc03186acbad65990cc05dd2d'/>
<id>urn:sha1:a1f9a4072655843fc03186acbad65990cc05dd2d</id>
<content type='text'>
The xpad wireless endpoint is not a bulk endpoint on my devices, but
rather an interrupt one, so the USB core complains when it is submitted.
I'm guessing that the author really did mean that this should be an
interrupt urb, but as there are a zillion different xpad devices out
there, let's cover out bases and handle both bulk and interrupt
endpoints just as easily.

Signed-off-by: "Pierre-Loup A. Griffais" &lt;pgriffais@valvesoftware.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - add Thrustmaster as Xbox 360 controller vendor</title>
<updated>2014-10-16T21:05:40Z</updated>
<author>
<name>Tommi Rantala</name>
<email>tt.rantala@gmail.com</email>
</author>
<published>2014-10-16T21:02:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4dfb15cd5aaa6682e93854a74b394a1c95b82621'/>
<id>urn:sha1:4dfb15cd5aaa6682e93854a74b394a1c95b82621</id>
<content type='text'>
Add Thrustmaster as Xbox 360 controller vendor. This is required for
example to make the GP XID (044f:b326) gamepad work.

Signed-off-by: Tommi Rantala &lt;tt.rantala@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Input: xpad - add USB ID for Thrustmaster Ferrari 458 Racing Wheel</title>
<updated>2014-10-16T21:05:40Z</updated>
<author>
<name>Tommi Rantala</name>
<email>tt.rantala@gmail.com</email>
</author>
<published>2014-10-16T21:01:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4b54625822eb7a4eae9c5b8c890b6c4dc001b895'/>
<id>urn:sha1:4b54625822eb7a4eae9c5b8c890b6c4dc001b895</id>
<content type='text'>
Add the USB ID for the Xbox 360 Thrustmaster Ferrari 458 Racing Wheel.

Signed-off-by: Tommi Rantala &lt;tt.rantala@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
</content>
</entry>
</feed>
