Re: [PATCH V2 05/11] hwmon: (coretemp) Remove unnecessary dependency of array index

From: Guenter Roeck
Date: Sun Feb 04 2024 - 09:48:49 EST


On Fri, Feb 02, 2024 at 05:21:38PM +0800, Zhang Rui wrote:
> When sensor_device_attribute pointer is available, use container_of() to
> get the temp_data address.
>
> This removes the unnecessary dependency of cached index in
> pdata->core_data[].
>
> No functional change.
>
> Signed-off-by: Zhang Rui <rui.zhang@xxxxxxxxx>

Applied.

Thanks,
Guenter