Re: [PATCH 3/5] toshiba_acpi: Add accelerometer input polled device

From: Greg Kroah-Hartman
Date: Wed Sep 10 2014 - 12:09:05 EST


On Wed, Sep 10, 2014 at 09:28:44AM -0600, Azael Avalos wrote:
> Hi there,
>
> 2014-09-09 21:35 GMT-06:00 Darren Hart <dvhart@xxxxxxxxxxxxx>:
> >
> > I immediately went to a tablet with a marble maze game and it didn't seem too
> > crazy, but I don't suppose that is what people are actually doing with it...
> >
> > What are people actually doing with this thing Azael?
>
> Gaming mostly (supertuxkart anyone?), but some others (including myself)
> want to use it as a movement detection (one exists for the IBM/Lenovo
> Thinkpads).
>
> Digging into platform drivers, I've found that the hdaps and also the lis3lv02d
> drivers report the axes via polldev, and since I don't want to break userspace,
> I'm left with two choices:
>
> 1 - Keep sysfs entry and adapt it to properly report direction, and no
> polled device.
>
> 2 - Keep sysfs entry and adapt it to properly report direction, and also
> a polled device.
>
> Let me know your decision so I can send an updated patch.

3 - use the correct api and change it to iio so that all userspace tools
can correctly interact with it, instead of dealing with a
driver-specific sysfs file.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/