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)
commitaa195fe49b033db545ad986cdb2c431c37bea557
tree1ea147ffde22ca9657ba356493354f8874f74847
parent88be37c07c1524102aed5736094cfacf24407b46
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