summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-30 19:43:22 +0200
committerZhang Rui <rui.zhang@intel.com>2015-05-01 07:22:34 +0200
commitce1d94919de3ffc1769b327792ea0189db6e7551 (patch)
tree00f29a82471b8a68e17763b14f670055ba9675ca /drivers/thermal
parentLinux 4.1-rc1 (diff)
downloadlinux-ce1d94919de3ffc1769b327792ea0189db6e7551.tar.xz
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')
-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)