hwmon: (k10temp) Reorganize and simplify temperature support detection
authorGuenter Roeck <linux@roeck-us.net>
Thu, 23 Jan 2020 16:58:22 +0000 (08:58 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 9 Mar 2020 03:35:46 +0000 (20:35 -0700)
commit60465245e6ce06691f1aa5d89c59b26679df7617
tree672b04960c147b3f133d6bd23d6efe8a84a105bb
parentb02c6857389da66b09e447103bdb247ccd182456
hwmon: (k10temp) Reorganize and simplify temperature support detection

Use a bit map to describe if temperature channels are supported,
and use it for all temperature channels. Use a separate flag,
independent of Tdie support, to indicate if the system is running
on a Ryzen CPU.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/k10temp.c