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. Changes since v1: - fixed alignment - killed a couple of useless "return NULL" - changed returned value of parse_opal_node_name() - used *_PTR macros to check for errors 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 _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors