Hi jvn,
I don't know which version you are using.
The thermal drive is in the driver/thermal
As other driver, linux just ask you to implement its ops.
It doesn't matter, it is from dia thermal, or the external thermal.
static const struct thermal_zone_device_ops imx_tz_ops = {
.bind = imx_bind,
.unbind = imx_unbind,
.get_temp = imx_get_temp,
.get_mode = imx_get_mode,
.set_mode = imx_set_mode,
.get_trip_type = imx_get_trip_type,
.get_trip_temp = imx_get_trip_temp,
.get_crit_temp = imx_get_crit_temp,
.get_trend = imx_get_trend,
.set_trip_temp = imx_set_trip_temp,
};