summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/thermal_core.h
diff options
context:
space:
mode:
authorJoe Perches2015-03-30 19:43:22 +0200
committerZhang Rui2015-05-01 07:22:34 +0200
commitce1d94919de3ffc1769b327792ea0189db6e7551 (patch)
tree00f29a82471b8a68e17763b14f670055ba9675ca /drivers/thermal/thermal_core.h
parentLinux 4.1-rc1 (diff)
downloadkernel-qcow2-linux-ce1d94919de3ffc1769b327792ea0189db6e7551.tar.gz
kernel-qcow2-linux-ce1d94919de3ffc1769b327792ea0189db6e7551.tar.xz
kernel-qcow2-linux-ce1d94919de3ffc1769b327792ea0189db6e7551.zip
thermal: Use bool function return values of true/false not 1/0
Use the normal return values for bool functions Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/thermal_core.h')
-rw-r--r--drivers/thermal/thermal_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h
index 0531c752fbbb..8e391812e503 100644
--- a/drivers/thermal/thermal_core.h
+++ b/drivers/thermal/thermal_core.h
@@ -103,7 +103,7 @@ static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz)
static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz,
int trip)
{
- return 0;
+ return false;
}
static inline const struct thermal_trip *
of_thermal_get_trip_points(struct thermal_zone_device *tz)