* [PATCH 0/7] drivers: Use bool function return values true/false not 1/0
@ 2015-03-30 17:43 Joe Perches
2015-03-30 17:43 ` [PATCH 6/7] thermal: Use bool function return values of " Joe Perches
0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2015-03-30 17:43 UTC (permalink / raw)
To: linux-kernel, dm-devel, linux-raid, platform-driver-x86, netdev,
linux-pm, linux-serial
Cc: dri-devel
Joe Perches (7):
drm: Use bool function return values of true/false not 1/0
dm_table: Use bool function return values of true/false not 1/0
genwqe: Use bool function return values of true/false not 1/0
wmi: Use bool function return values of true/false not 1/0
ssb: Use bool function return values of true/false not 1/0
thermal: Use bool function return values of true/false not 1/0
serial: kgdb_nmi: Use bool function return values of true/false not
1/0
drivers/gpu/drm/ast/ast_post.c | 2 +-
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +-
drivers/md/dm-table.c | 20 ++++++++++----------
drivers/misc/genwqe/card_base.h | 2 +-
drivers/platform/x86/wmi.c | 4 ++--
drivers/ssb/driver_gige.c | 2 +-
drivers/thermal/thermal_core.h | 2 +-
drivers/tty/serial/kgdb_nmi.c | 6 +++---
8 files changed, 20 insertions(+), 20 deletions(-)
--
2.1.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 6/7] thermal: Use bool function return values of true/false not 1/0
2015-03-30 17:43 [PATCH 0/7] drivers: Use bool function return values true/false not 1/0 Joe Perches
@ 2015-03-30 17:43 ` Joe Perches
2015-04-07 5:43 ` Zhang, Rui
0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2015-03-30 17:43 UTC (permalink / raw)
To: linux-kernel, Zhang Rui, Eduardo Valentin; +Cc: linux-pm
Use the normal return values for bool functions
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/thermal/thermal_core.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h
index 9e20e4d..749d41a 100644
--- a/drivers/thermal/thermal_core.h
+++ b/drivers/thermal/thermal_core.h
@@ -115,7 +115,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)
--
2.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH 6/7] thermal: Use bool function return values of true/false not 1/0
2015-03-30 17:43 ` [PATCH 6/7] thermal: Use bool function return values of " Joe Perches
@ 2015-04-07 5:43 ` Zhang, Rui
0 siblings, 0 replies; 3+ messages in thread
From: Zhang, Rui @ 2015-04-07 5:43 UTC (permalink / raw)
To: Joe Perches, linux-kernel@vger.kernel.org, Eduardo Valentin
Cc: linux-pm@vger.kernel.org
> -----Original Message-----
> From: Joe Perches [mailto:joe@perches.com]
> Sent: Tuesday, March 31, 2015 1:43 AM
> To: linux-kernel@vger.kernel.org; Zhang, Rui; Eduardo Valentin
> Cc: linux-pm@vger.kernel.org
> Subject: [PATCH 6/7] thermal: Use bool function return values of true/false not
> 1/0
> Importance: High
>
> Use the normal return values for bool functions
>
> Signed-off-by: Joe Perches <joe@perches.com>
Applied.
Thanks,
rui
> ---
> drivers/thermal/thermal_core.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h
> index 9e20e4d..749d41a 100644
> --- a/drivers/thermal/thermal_core.h
> +++ b/drivers/thermal/thermal_core.h
> @@ -115,7 +115,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)
> --
> 2.1.2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-07 5:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-30 17:43 [PATCH 0/7] drivers: Use bool function return values true/false not 1/0 Joe Perches
2015-03-30 17:43 ` [PATCH 6/7] thermal: Use bool function return values of " Joe Perches
2015-04-07 5:43 ` Zhang, Rui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).