aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-30 13:43:22 -0400
committerZhang Rui <rui.zhang@intel.com>2015-05-01 01:22:34 -0400
commitce1d94919de3ffc1769b327792ea0189db6e7551 (patch)
tree00f29a82471b8a68e17763b14f670055ba9675ca
parentb787f68c36d49bb1d9236f403813641efa74a031 (diff)
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>
-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)
103static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, 103static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz,
104 int trip) 104 int trip)
105{ 105{
106 return 0; 106 return false;
107} 107}
108static inline const struct thermal_trip * 108static inline const struct thermal_trip *
109of_thermal_get_trip_points(struct thermal_zone_device *tz) 109of_thermal_get_trip_points(struct thermal_zone_device *tz)