hwmon: (it87) Improve temperature reporting support
authorFrank Crawford <frank@crawford.emu.id.au>
Fri, 7 Jul 2023 12:29:51 +0000 (22:29 +1000)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 21 Aug 2023 13:04:29 +0000 (06:04 -0700)
commit2f60e5932942d923258b37d24d147cb7d765df3d
tree8ff9cf1d8866e4b68b0ce1cc30c69db1f2d52b1f
parent4018e0a9c00131d8514015749f45f0578cc59c64
hwmon: (it87) Improve temperature reporting support

Add test if thermistor sensor type attribute should be visible, i.e.
test if the attribute is defined.

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