Re: [PATCH v6 1/3] hwmon: (applesmc) Cache fan positions during register initialization
From: Guenter Roeck
Date: Sun Jul 19 2026 - 10:38:04 EST
On Sat, Jul 11, 2026 at 05:33:21PM +0800, Shih-Yuan Lee wrote:
> To support the read_string callback for fan labels in the modern HWMON
> API, load and cache the fan position names in smcreg.fan_positions
> during register initialization.
>
> Pre-pad fallback labels with four spaces to match the "+ 4" pointer
> arithmetic offset used by all fan labels in the read_string callback.
>
> Signed-off-by: Shih-Yuan Lee <fourdollars@xxxxxxxxxx>
Applied.
Thanks,
Guenter