Re: [PATCH v3] iio: light: tsl2583: migrate to sysfs_emit() and sysfs_emit_at()
From: Andy Shevchenko
Date: Thu Jul 16 2026 - 16:12:31 EST
On Thu, Jul 16, 2026 at 09:04:35AM +0800, OrangeBlack0765@xxxxxxxxxxx wrote:
> Replace sprintf() with sysfs_emit() for single-value sysfs show
> functions, and use sysfs_emit_at() for lux_table_show() which
> concatenates multiple values. This ensures buffer safety and
> follows the modern kernel sysfs API.
Now it looks good to me.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko