Re: [PATCH 2/6] hwmon: Use device_show_string() helper for sysfs attributes

From: Guenter Roeck
Date: Sat Apr 20 2024 - 17:46:31 EST


On Sat, Apr 20, 2024 at 10:00:02PM +0200, Lukas Wunner wrote:
> Deduplicate sysfs ->show() callbacks which expose a string at a static
> memory location. Use the newly introduced device_show_string() helper
> in the driver core instead by declaring those sysfs attributes with
> DEVICE_STRING_ATTR_RO().
>
> No functional change intended.
>
> Signed-off-by: Lukas Wunner <lukas@xxxxxxxxx>

Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Guenter