Re: [PATCH] iio: adc: ad7816: use sysfs_emit() instead of sprintf()

From: Greg KH

Date: Mon Apr 20 2026 - 08:33:17 EST


On Mon, Apr 20, 2026 at 08:27:20PM +0900, Minu Jin wrote:
> Replace sprintf() with sysfs_emit().
> sysfs_emit() is preferred than sprintf() in show() functions.

For _new_ functions, not existing ones.

> It has aware of the PAGE_SIZE buffer limit and ensures safe buffer handling.

Are any of the current usages incorrect? If not, no need to change
this.

thanks,

greg k-h