Re: [PATCH] iio: light: tsl2583: migrate to sysfs_emit()

From: OrangeBlack0765

Date: Tue Jul 14 2026 - 09:40:32 EST


From: OrangeBlack0765 <OrangeBlack0765@xxxxxxxxxxx>

On Tue, Jul 14, 2026 at 11:53:42AM +0300, Andy Shevchenko wrote:
> > for (i = 0; i < ARRAY_SIZE(chip->als_settings.als_device_lux); i++) {
> > - offset += sprintf(buf + offset, "%u,%u,%u,",
> > + offset += sysfs_emit_at(buf, offset, "%u,%u,%u,",
> > chip->als_settings.als_device_lux[i].ratio,
> > chip->als_settings.als_device_lux[i].ch0,
> > chip->als_settings.als_device_lux[i].ch1);
>
> Now the indentation becomes broken.

Thanks for catching this. I will fix the indentation and send v2 shortly.