]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon (occ): Parse OCC poll response
authorEddie James <eajames@linux.vnet.ibm.com>
Thu, 8 Nov 2018 21:05:26 +0000 (15:05 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 16 Dec 2018 23:13:08 +0000 (15:13 -0800)
commit11e40d13c253c9d81057cfd109d897d070807882
tree1ea147ffde22ca9657ba356493354f8874f74847
parent7bd3607a918a683b760edfc2bdf245306b1c566e
hwmon (occ): Parse OCC poll response

Add method to parse the response from the OCC poll command. This only
needs to be done during probe(), since the OCC shouldn't change the
number or format of sensors while it's running. The parsed response
allows quick access to sensor data, as well as information on the
number and version of sensors, which we need to instantiate hwmon
attributes.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/common.c
drivers/hwmon/occ/common.h