public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* Kernel wishlist item: Better IIO API
@ 2014-10-29 14:30 Bastien Nocera
  2014-10-29 17:21 ` Lars-Peter Clausen
  0 siblings, 1 reply; 19+ messages in thread
From: Bastien Nocera @ 2014-10-29 14:30 UTC (permalink / raw)
  To: linux-iio

Hey,

I've posted this a couple of days ago:
http://www.hadess.net/2014/10/a-gnome-kernel-wishlist.html
along with a mail to LKML:
http://thread.gmane.org/gmane.linux.kernel/1810083

I've recently added to my list an item about IIO:
https://wiki.gnome.org/BastienNocera/KernelWishlist

Are there any plans for a better API for the IIO subsystem? The API
might be good enough to drive from shell scripts, or helpers that only
need to work with one variant of a device, but my attempts at trying to
use the IIO subsystem to provide an accelerometer to do automatic
display rotation[1] showed that the API is really cumbersome.

The code I wrote spends most of its time creating sysfs paths, reading
values in different formats, and mangling filenames[2].

Is an ioctl-based API planned? Something where I could get/set
structures to gather metadata about the device, and set it up easily, so
reading data from it is easier?

Cheers

PS: I plan on updating my Kionix driver posted here:
http://thread.gmane.org/gmane.linux.kernel.iio/13793
once I've had the opportunity to double-check it works with the
aforementioned code.

[1]: https://github.com/hadess/iio-sensor-proxy
[2]: https://github.com/hadess/iio-sensor-proxy/blob/master/iio-sensor-proxy.c#L331


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-03-21 16:15 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 14:30 Kernel wishlist item: Better IIO API Bastien Nocera
2014-10-29 17:21 ` Lars-Peter Clausen
2014-10-29 17:33   ` Bastien Nocera
2014-10-29 17:39     ` Lars-Peter Clausen
2014-10-29 17:47       ` Bastien Nocera
2014-10-29 18:30         ` Lars-Peter Clausen
2014-11-03 23:01           ` Bastien Nocera
2014-11-04  7:52             ` Jonathan Cameron
2014-11-04  8:18             ` Daniel Baluta
2014-11-04  8:27               ` Bastien Nocera
2014-11-04  8:37                 ` Daniel Baluta
2014-11-04  8:45                   ` Bastien Nocera
2014-11-04  8:56                     ` Daniel Baluta
2014-11-06 14:55                       ` Bastien Nocera
2014-11-13 20:05           ` Bastien Nocera
2014-11-16 22:12             ` Jonathan Cameron
2014-11-16 22:42               ` Bastien Nocera
2014-11-17 13:34                 ` Jonathan Cameron
2015-03-21 16:08               ` Elad Alfassa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox