Re: [PATCH 2/2] iio: light: ltr390: Add conditional data freshness check with sysfs control
From: Akshay Jindal
Date: Sun Jul 27 2025 - 16:12:45 EST
On Fri, Jul 25, 2025 at 12:24 AM Akshay Jindal <akshayaj.lkd@xxxxxxxxx> wrote:
>
> I agree that this will break the user behaviour.
> Before dumping this off, I wanted to explore an idea.
> What if this remains disabled by default, i.e. data->data_fresh_check_en = 0;
> So this way the regular sensor read_data calls will not break, and
> based on demand,
> the application can configure the driver to check for data freshness,
> by toggling the sysfs attribute to 1.
> i.e. echo 1 | sudo tee /sys/bus/iio/devices/iio\:device0/data_fresh_check_enable
>
Hi,
Is there any feedback on this?
Thanks,
Akshay.