Re: [PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-08-04 Thread Punit Agrawal
Guenter Roeck li...@roeck-us.net writes: On 08/03/2015 08:22 AM, Punit Agrawal wrote: thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when

[PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-08-03 Thread Punit Agrawal
thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when THERMAL_OF is configured off. Fix this. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc:

Re: [PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-08-03 Thread Guenter Roeck
On 08/03/2015 08:22 AM, Punit Agrawal wrote: thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when THERMAL_OF is configured off. Fix this.