RE: [PATCHv2 05/14] Thermal: Obtain platform data for thermal zone
From: R, Durgadoss <hidden>
Date: 2012-08-27 08:59:31
From: R, Durgadoss <hidden>
Date: 2012-08-27 08:59:31
Hi Rui,
quoted
/** * thermal_zone_device_register - register a new thermal zone device * @type: the thermal zone device type@@ -1443,6 +1459,11 @@ struct thermal_zone_device*thermal_zone_device_register(const char *type, if (result) goto unregister; + /* Retrieve platform level parameters for this zone */ + result = retrieve_zone_params(tz); + if (result) + goto unregister; +As I said, if we need it, we should ask user to provide it during registration. What do you think?
That's Fine, we can provide it through tzd_register function call. Thanks, Durga