]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
hwmon: (nct6775) Rework temperature source and label handling
authorGuenter Roeck <linux@roeck-us.net>
Thu, 18 May 2017 01:05:06 +0000 (18:05 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 12 Jun 2017 00:08:19 +0000 (17:08 -0700)
commitcc66b30382549aca35385c04f9a9911052c548ef
tree1cbd297c35c2f7633051d27f7407545a2c83c1a2
parentd1bb218687079c365ea8a8a096abeefc8768dd0c
hwmon: (nct6775) Rework temperature source and label handling

Instead of checking if a temperature source has a label, use a bit mask
to determine if a temperature source is valid for a given chip.
This simplifies the code and, if necessary, lets us support chips with
unknown or incomplete labels.

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