Re: [PATCH 1/4] hwmon: Add label support for 64-bit energy attributes

From: Guenter Roeck

Date: Thu Mar 26 2026 - 19:42:10 EST


On Fri, Mar 27, 2026 at 03:19:50AM +0800, Rong Zhang wrote:
> Since commit 0bcd01f757bc ("hwmon: Introduce 64-bit energy attribute
> support"), devices can report 64-bit energy values by selecting the
> sensor type "energy64". However, such sensors can't report their labels
> since is_string_attr() was not updated to match it.
>
> Add label support for 64-bit energy attributes by updating
> is_string_attr() to match hwmon_energy64 in addition to hwmon_energy.
>
> Signed-off-by: Rong Zhang <i@xxxxxxxx>

Applied.

Thanks,
Guenter