Hello Rui, Here is V3 of temperature lookup helper function. This has been split into two API as suggested on V1 and now the API returns an specific error code for multiple matches, as suggested in V2.
The usage of it is exemplified on patch 03. Eduardo Valentin (3): thermal: introduce thermal_zone_get_zone_by_name helper function thermal: expose thermal_zone_get_temp API staging: ti-soc-thermal: remove external heat while extrapolating hotspot drivers/staging/ti-soc-thermal/ti-thermal-common.c | 30 +++++++---- drivers/thermal/thermal_sys.c | 58 +++++++++++++++++++- include/linux/thermal.h | 2 + 3 files changed, 77 insertions(+), 13 deletions(-) -- 1.7.7.1.488.ge8e1c -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/