RE: Adding custom functional callbacks to IIO driver
From: Anand Ashok Dumbre <hidden>
Date: 2021-02-12 11:41:15
Also in:
linux-iio, lkml
Thanks a lot I will go through it.
-----Original Message----- From: Lars-Peter Clausen <lars@metafoo.de> Sent: Friday 12 February 2021 5:06 PM To: Anand Ashok Dumbre <redacted>; Jonathan Cameron [off-list ref]; knaack.h@gmx.de; Peter Meerwald-Stadler [off-list ref]; Michal Simek [off-list ref]; linux- iio@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux- kernel@vger.kernel.org Subject: Re: Adding custom functional callbacks to IIO driver On 2/12/21 12:07 PM, Anand Ashok Dumbre wrote:quoted
Hello, I have an IIO adc driver that measures temperatures and voltages on theSOC.quoted
There are other kernel modules interested in the temperature and voltageevent information.quoted
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
_______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel