]> git.baikalelectronics.ru Git - 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)
commit6625e40e95885f1e60a3e1d1610db3d411551ad7
tree1cbd297c35c2f7633051d27f7407545a2c83c1a2
parent79211d90f0ff857ee6d81a4f4e7c0f0bbd983a92
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