[Skiboot] [PATCH 0/5] hwmon: (ibmpowernv) remove dependency on OPAL index
Cédric Le Goater
clg at fr.ibm.com
Thu Mar 19 02:47:40 AEDT 2015
The current implementation of the driver uses an index for the hwmon
attribute which is extracted from the device node name. This index
is calculated by the OPAL firmware and its usage creates a dependency
with the driver which makes changes a little more complex in OPAL.
This patchset changes the ibmpowernv code to use its own index. It
starts with a few cleanups, mostly code shuffling around the creation
of the hwmon sysfs attributes and completes by removing the dependency.
It also prepares ground for future OPAL changes :
which will be addressed in a other small patchset.
The patches are based on Linux 4.0.0-rc4 and were tested on IBM Power
and Open Power systems running Trusty.
Cédric Le Goater (5):
hwmon: (ibmpowernv) replace AMBIENT_TEMP by TEMP
hwmon: (ibmpowernv) add a get_sensor_type() routine
hwmon: (ibmpowernv) add a convert_opal_attr_name() routine
hwmon: (ibmpowernv) change create_hwmon_attr_name() prototype
hwmon: (ibmpowernv) do not use the OPAL index for hwmon attribute
drivers/hwmon/ibmpowernv.c | 122 +++++++++++++++++++++++++++++---------------
1 file changed, 81 insertions(+), 41 deletions(-)
More information about the Skiboot