The temperature sensor type needs to be used in multiple places, so split it out into its own function. It is used both in show_temp_type attribute and testing if the attribute should be visible (i.e. is defined). The sensor type also detects the type AMDTSI on certain chipsets. --- Changes since v1: * Split single patch into multi-patch set following review. Frank Crawford (3): Split temperature sensor detection to separate function Improve temperature reporting support Add support to detect sensor type AMDTSI drivers/hwmon/it87.c | 78 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 65 insertions(+), 13 deletions(-) -- 2.41.0