Re: [PATCH] hwmon: (ads7871) Replace sprintf() with sysfs_emit()
From: Guenter Roeck
Date: Sat Mar 07 2026 - 20:24:32 EST
On Sat, Mar 07, 2026 at 02:08:15PM +0530, Tabrez Ahmed wrote:
> Use sysfs_emit() instead of sprintf() in the sysfs show function
> voltage_show() to comply with the preferred kernel interface for
> writing to sysfs buffers, which ensures PAGE_SIZE buffer limits
> are respected.
>
> No functional change intended.
>
> Note: Not runtime tested due to lack of hardware.
>
> Signed-off-by: Tabrez Ahmed <tabreztalks@xxxxxxxxx>
Applied.
Thanks,
Guenter