[PATCH linux] hwmon: power8_occ_i2c: create hwmon sysfs attributes dynamically

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri May 20 16:21:03 AEST 2016


This patch fixes issue: https://github.com/openbmc/skeleton/issues/58.

OCC sensor number varies for different platforms.
The patch creates hwmon sysfs attributes dynamically, using sensor information
get from OCC. Previously the sysfs attributes are created using statically
defined data structures.

Signed-off-by: Yi Li <adamliyi at msn.com>

https://github.com/openbmc/linux/pull/84

Yi Li (1):
  hwmon: power8_occ_i2c: create hwmon sysfs attributes dynamically

 drivers/hwmon/power8_occ_i2c.c | 858 ++++++++++++++++-------------------------
 1 file changed, 328 insertions(+), 530 deletions(-)

-- 
2.8.2




More information about the openbmc mailing list