Re: [PATCH v3] iio: light: ltr390: Implement runtime PM support
From: Akshay Jindal
Date: Sun Aug 31 2025 - 16:16:03 EST
On Mon, Sep 1, 2025 at 1:41 AM Akshay Jindal <akshayaj.lkd@xxxxxxxxx> wrote:
>
> On Sun, Aug 31, 2025 at 8:41 PM Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
> >
> > On Sun, 31 Aug 2025 11:09:26 +0530
> > Akshay Jindal <akshayaj.lkd@xxxxxxxxx> wrote:
> >
> > > On Sat, Aug 30, 2025 at 11:55 PM Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
> > > >
> > > > On Sat, 30 Aug 2025 17:05:00 +0530
> > > > Akshay Jindal <akshayaj.lkd@xxxxxxxxx> wrote:
> These are the functions where I have used it currently.
> static const struct iio_info ltr390_info = {
> .read_raw = ltr390_read_raw,----> reads sensor data, scale,
> int_time, samp_frequency from register
> .write_raw = ltr390_write_raw,-------> writes sampling
> frequency, scale, int_time into register.
> .read_avail = ltr390_read_avail, ----------------> no reg read
Update: I have not used pm_runtime_* calls here as there is no
interaction with any register here. In the rest of them I have used it.
Thanks,
Akshay