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

Guenter Roeck
2026-03-26T23:41:53Z

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@rong.moe>

Applied.

Thanks,
Guenter