lkml.org 
[lkml]   [2013]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] misc: add driver for Renesas R-Car Gyro-ADC/speed-pulse interfaces
On 07/14/2013 12:26 AM, Sergei Shtylyov wrote:
> Hello.
>
> On 07/13/2013 11:58 AM, Arnd Bergmann wrote:
>
>>>> And are you sure you want to control this through sysfs? There's no
>>>> other better user/kernel apis for it?
>
>>> I found none, besides ioctl(), as the device driven is rather
>>> unique. But I thought that sysfs is "ioctl() today", so I went with it...
>
>> It does sound like it would fit better into IIO than just a misc driver,
>> even if it's the only hardware of its kind.
>
> I got somewhat familiarized myself with drivers/iio/ infrastructure and I
> have found a place only the for ADC device in which the customer currently
> has no interest.
> The other trouble is that I'll have to backport this driver to 3.4 which
> doesn't contain the IIO infrastructure at all. :-(

It has, it's just still in staging in 3.4. But the API (except for minor
modifications) and more importantly the ABI are the same.

There is a angular velocity channel type in IIO. maybe that could be used to
report the Speed-Pulse-ADC values.

- Lars



\
 
 \ /
  Last update: 2013-07-14 10:41    [W:0.089 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site