projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b787f68
)
thermal: Use bool function return values of true/false not 1/0
author
Joe Perches
<joe@perches.com>
Mon, 30 Mar 2015 17:43:22 +0000
(10:43 -0700)
committer
Zhang Rui
<rui.zhang@intel.com>
Fri, 1 May 2015 05:22:34 +0000
(13:22 +0800)
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>
drivers/thermal/thermal_core.h
patch
|
blob
|
history
diff --git
a/drivers/thermal/thermal_core.h
b/drivers/thermal/thermal_core.h
index 0531c752fbbb6680c40e939ad2a14fdc1830f357..8e391812e50377664f079cb83f61c380b16e6d93 100644
(file)
--- 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)