]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (drivetemp) Fix SCT support if SCT data tables are not supported
authorGuenter Roeck <linux@roeck-us.net>
Sat, 9 May 2020 20:13:33 +0000 (13:13 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 9 May 2020 20:22:34 +0000 (13:22 -0700)
commit10b0b95734981aaf7c7c101629b2b9bd14796bfc
treee8f4a111c9a1cf30360e8943e41e8b678a830385
parente4e79bc94ba2381f2a677c8e345f3bbe0674f2c2
hwmon: (drivetemp) Fix SCT support if SCT data tables are not supported

If SCT is supported but SCT data tables are not, the driver unnecessarily
tries to fall back to SMART. Use SCT without data tables instead in this
situation.

Fixes: 8e55853efe1f ("hwmon: Driver for disk and solid state drives with temperature sensors")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/drivetemp.c