Re: [PATCH v2 03/17] thermal: separate sensor enable and check operations

2018-10-26 Thread Amit Kucheria
On Wed, Oct 17, 2018 at 9:23 PM Bartlomiej Zolnierkiewicz wrote: > > [devm]_thermal_zone_of_sensor_register() is used to register > thermal sensor by thermal drivers using DeviceTree. Besides > registering sensor this function also immediately: > > - enables it: > > tzd->ops->set_mode(tzd,

Re: [PATCH v2 03/17] thermal: separate sensor enable and check operations

2018-10-26 Thread Amit Kucheria
On Wed, Oct 17, 2018 at 9:23 PM Bartlomiej Zolnierkiewicz wrote: > > [devm]_thermal_zone_of_sensor_register() is used to register > thermal sensor by thermal drivers using DeviceTree. Besides > registering sensor this function also immediately: > > - enables it: > > tzd->ops->set_mode(tzd,

[PATCH v2 03/17] thermal: separate sensor enable and check operations

2018-10-17 Thread Bartlomiej Zolnierkiewicz
[devm]_thermal_zone_of_sensor_register() is used to register thermal sensor by thermal drivers using DeviceTree. Besides registering sensor this function also immediately: - enables it: tzd->ops->set_mode(tzd, THERMAL_DEVICE_ENABLED) (->set_mode is set to of_thermal_set_mode() in

[PATCH v2 03/17] thermal: separate sensor enable and check operations

2018-10-17 Thread Bartlomiej Zolnierkiewicz
[devm]_thermal_zone_of_sensor_register() is used to register thermal sensor by thermal drivers using DeviceTree. Besides registering sensor this function also immediately: - enables it: tzd->ops->set_mode(tzd, THERMAL_DEVICE_ENABLED) (->set_mode is set to of_thermal_set_mode() in