thermal: Fix thermal_zone_of_sensor_register to match documentation
authorPunit Agrawal <punit.agrawal@arm.com>
Tue, 8 Sep 2015 13:51:12 +0000 (14:51 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 14 Sep 2015 02:33:07 +0000 (19:33 -0700)
commitcd33dc9ac2977ebe30cecbf39d2992190fbac5b4
tree198e7f311e0479d5168dd9d4583a00ac04e673a3
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
thermal: Fix thermal_zone_of_sensor_register to match documentation

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.agrawal@arm.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
include/linux/thermal.h