RE: Adding custom functional callbacks to IIO driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks a lot I will go through it. 

> -----Original Message-----
> From: Lars-Peter Clausen <lars@xxxxxxxxxx>
> Sent: Friday 12 February 2021 5:06 PM
> To: Anand Ashok Dumbre <ANANDASH@xxxxxxxxxx>; Jonathan Cameron
> <jic23@xxxxxxxxxx>; knaack.h@xxxxxx; Peter Meerwald-Stadler
> <pmeerw@xxxxxxxxxx>; Michal Simek <michals@xxxxxxxxxx>; linux-
> iio@xxxxxxxxxxxxxxx; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx
> Subject: Re: Adding custom functional callbacks to IIO driver
> 
> On 2/12/21 12:07 PM, Anand Ashok Dumbre wrote:
> > Hello,
> >
> > I have an IIO adc driver that measures temperatures and voltages on the
> SOC.
> > There are other kernel modules interested in the temperature and voltage
> event information.
> >
> > Would using a custom callback registration mechanism be advisable?
> > Is there something similar done already in IIO that can be leveraged?
> 
> Hi,
> 
> Have a look at the IIO consumer API that allows other kernel modules to
> subscribe to the output of an IIO device.
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/inclu
> de/linux/iio/consumer.h
> 
> 
> - Lars





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux