hwmon: (it87) Split temperature sensor detection to separate function
authorFrank Crawford <frank@crawford.emu.id.au>
Fri, 7 Jul 2023 12:29:50 +0000 (22:29 +1000)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 21 Aug 2023 13:04:29 +0000 (06:04 -0700)
commit4018e0a9c00131d8514015749f45f0578cc59c64
tree7588805ca8ca9d6d89a0ef5e19f9d3716e89b989
parent49ffb5eefebccf498fb2a45b46ff58d0b255bf97
hwmon: (it87) Split temperature sensor detection to separate function

The temperature sensor type will need to be used in multiple places, so
split it out into its own function.

Signed-off-by: Frank Crawford <frank@crawford.emu.id.au>
Link: https://lore.kernel.org/r/20230707123005.956415-2-frank@crawford.emu.id.au
[groeck: Dropped unnecessary 'type' variable in show_temp_type()]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c