[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
Hello !
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 :
https://lists.ozlabs.org/pipermail/skiboot/2015-March/000639.html
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.
Cheers,
C.
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
names
drivers/hwmon/ibmpowernv.c | 122 +++++++++++++++++++++++++++++---------------
1 file changed, 81 insertions(+), 41 deletions(-)
--
1.7.10.4
More information about the Linuxppc-dev
mailing list