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

From: Joshua Crofts

Date: Tue Jul 14 2026 - 02:53:01 EST


On Tue, 14 Jul 2026 01:08:33 +0800
OrangeBlack0765@xxxxxxxxxxx wrote:

> From: Chengrui Liu <OrangeBlack0765@xxxxxxxxxxx>
>
> 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.
>
> Signed-off-by: Chengrui Liu <OrangeBlack0765@xxxxxxxxxxx>
> ---

LGTM.

Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>

--
Kind regards

CJD