[PATCH v2 2/3] Input: gamecon - store object at correct index

2015-10-03 Thread Sudip Mukherjee
The variable i is used to check the port to attach to and we are supposed to save the reference of struct gc in the location given by gc_base[i]. But after finding out the index, i is getting modified again so we saved in a wrong index. Reported-by: Dan Carpenter Fixes:

[PATCH v2 1/3] Input: db9 - store object at correct index

2015-10-03 Thread Sudip Mukherjee
The variable i is used to check the port to attach to and we are supposed to save the reference of struct db9 in the location given by db9_base[i]. But after finding out the index, i is getting modified again so we saved in a wrong index. While at it mark db9_base[i] as NULL after it is freed.

[PATCH v2 3/3] Input: turbografx - store object in correct index

2015-10-03 Thread Sudip Mukherjee
The variable i is used to check the port to attach to and we are supposed to save the reference of struct tgfx in the location given by tgfx_base[i]. But after finding out the index, i is getting modified again so we saved in a wrong index. Fixes: 4de27a638a99 ("Input: turbografx - use parallel

Re: [PATCH 00/18] Input - Fix make coccicheck warnings

2015-10-03 Thread Javier Martinez Canillas
Hello Dmitry, On 10/02/2015 08:25 PM, Dmitry Torokhov wrote: > Hi Javier, > > On Fri, Oct 02, 2015 at 03:40:11PM +0200, Javier Martinez Canillas wrote: >> Hello Dmitry, >> >> This series contains trivial patches with fixes to different warnings >> reported by make coccichek M=drivers/input. >>

[PATCH] usbhid: Fix for the WiiU adapter from Mayflash

2015-10-03 Thread Oliver Schmitt
The WiiU adapter from Mayflash (see http://www.mayflash.com/Products/NINTENDOWiiU/W009.html) is not working correctly. The "XInput" mode works fine, the controller is recognized as a xbox controller. But it is only possible to connect one controller with this method. In "DInput" mode the

Re: [PATCH] usbhid: Fix for the WiiU adapter from Mayflash

2015-10-03 Thread Felipe Balbi
Oliver Schmitt writes: Hi, > The WiiU adapter from Mayflash (see > http://www.mayflash.com/Products/NINTENDOWiiU/W009.html) is not working > correctly. > > The "XInput" mode works fine, the controller is recognized as a xbox > controller. But it is only possible to connect

Re: [PATCH] input: Port rotary_encoder to of_property_read_bool

2015-10-03 Thread Ezequiel Garcia
On 16 December 2013 at 21:10, Ben Gamari wrote: > --- > drivers/input/misc/rotary_encoder.c | 9 +++-- > 1 file changed, 3 insertions(+), 6 deletions(-) > > diff --git a/drivers/input/misc/rotary_encoder.c > b/drivers/input/misc/rotary_encoder.c > index

Re: [PATCH] HID: hiddev: fix returned errno code in hiddev_connect()

2015-10-03 Thread Luis de Bethencourt
On 30/09/15 20:40, Jiri Kosina wrote: > On Wed, 30 Sep 2015, Luis de Bethencourt wrote: > >> The driver is using -1 instead of the -ENOMEM defined macro to specify >> that a buffer allocation failed. Since the error number is propagated, >> the caller will get a -EPERM which is the wrong error

[PATCH] HID: quirks: add MULTI_INPUT quirk for Dragonrise GameCube adapter

2015-10-03 Thread Andrew Rodland
This device (aka Mayflash GameCube Adapter) has 4 controller ports, and without the quirk they all become one very large joystock device. With the quirk they're recognized as 4 separate joysticks. Signed-off-by: Andrew Rodland --- drivers/hid/hid-ids.h | 3