Re: iio sensors, acceleration and gyro.

2015-10-25 Thread Mike Mestnik
--- Top Post --- I've done some more research into this and I feel that the iio project has the answer, the kernel api. Looks like the developers of iio had already considered input events being generated from iio data, this includes both rotation(6 possible states and reasons other than an ~0,0

Re: [PATCH] Input: evdev - add event-mask API

2015-10-25 Thread David Herrmann
Hi On Sun, Oct 25, 2015 at 2:17 AM, Dmitry Torokhov wrote: > Hi David, > > On Thu, Sep 03, 2015 at 06:14:01PM +0200, David Herrmann wrote: >> +static int bits_from_user(unsigned long *bits, unsigned int maxbit, >> + unsigned int maxlen, const void

Re: [PATCH] HID: usbhid: Add a quirk for Xin-Mo Dual Arcade

2015-10-25 Thread Lars Melin
On 2015-10-24 22:44, Michele Baldessari wrote: The Xin-Mo Dual Arcade controller (16c0:05e1) needs this quirk in order to have the two distinct joysticks working. Before the change: $ jstest /dev/input/js0 Joystick (Xin-Mo Xin-Mo Dual Arcade) has 2 axes (X, Y) ... $ jstest /dev/input/js1

Re: [PATCH v3] Input: uinput - add new UINPUT_DEV_SETUP and UI_ABS_SETUP ioctl

2015-10-25 Thread David Herrmann
Hi On Sun, Oct 25, 2015 at 12:53 AM, Dmitry Torokhov wrote: > Hi Benjamin, > > On Tue, Aug 25, 2015 at 11:12:59AM -0400, Benjamin Tissoires wrote: >> +static int uinput_abs_setup(struct uinput_device *udev, >> + struct uinput_setup __user *arg,

Re: [PATCH 1/2] input: misc: e3x0-button: Fix typo in module name

2015-10-25 Thread Dmitry Torokhov
Hi Moritz, On Sun, Oct 25, 2015 at 01:06:06PM -0700, Moritz Fischer wrote: > The produced module will be called e3x0-button, not > e3x0_button. This is not entirely correct. The file name is e3x0-button.ko, but the module name is e3x0_button: when we construct KBUILD_MODNAME we substitute commas

Re: [PATCH 2/2] input: misc: e3x0-button: Update Kconfig description

2015-10-25 Thread Dmitry Torokhov
On Sun, Oct 25, 2015 at 01:06:07PM -0700, Moritz Fischer wrote: > The driver is now used for the entire USRP e3xx series, > this commit fixes the description that will be displayed in > the menu accordingly. > > Signed-off-by: Moritz Fischer Applied, thank you. > ---

Re: [PATCH] Input: evdev - add event-mask API

2015-10-25 Thread Dmitry Torokhov
On Sun, Oct 25, 2015 at 10:00:17AM +0100, David Herrmann wrote: > Hi > > On Sun, Oct 25, 2015 at 2:17 AM, Dmitry Torokhov > wrote: > > Hi David, > > > > On Thu, Sep 03, 2015 at 06:14:01PM +0200, David Herrmann wrote: > >> +static int bits_from_user(unsigned long *bits,

Re: [PATCH] HID: usbhid: Add a quirk for Xin-Mo Dual Arcade

2015-10-25 Thread Michele Baldessari
On Sun, Oct 25, 2015 at 04:15:17PM +0700, Lars Melin wrote: > On 2015-10-24 22:44, Michele Baldessari wrote: > >The Xin-Mo Dual Arcade controller (16c0:05e1) needs this quirk in order > >to have the two distinct joysticks working. > > > >Before the change: > >$ jstest /dev/input/js0 > >Joystick

[PATCH 1/2] input: misc: e3x0-button: Fix typo in module name

2015-10-25 Thread Moritz Fischer
The produced module will be called e3x0-button, not e3x0_button. Signed-off-by: Moritz Fischer --- drivers/input/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index

[PATCH 2/2] input: misc: e3x0-button: Update Kconfig description

2015-10-25 Thread Moritz Fischer
The driver is now used for the entire USRP e3xx series, this commit fixes the description that will be displayed in the menu accordingly. Signed-off-by: Moritz Fischer --- drivers/input/misc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git