hwmon: (coretemp) Replace sensor_device_attribute with device_attribute
authorZhang Rui <rui.zhang@intel.com>
Fri, 2 Feb 2024 09:21:39 +0000 (17:21 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Feb 2024 20:37:37 +0000 (12:37 -0800)
commit18d8f5583388f38094b3b17ad3149d2a93a23646
tree02148d75c4066030ab8f88320f25ed43e7b41b9d
parent25f8e01baa05dfeb1b477112b1fec94f768f27b4
hwmon: (coretemp) Replace sensor_device_attribute with device_attribute

Replace sensor_device_attribute with device_attribute because
sensor_device_attribute->index is no longer used.

No functional change.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20240202092144.71180-7-rui.zhang@intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/coretemp.c