Skip to contentSkip to conversation

mfd: dbx500-prcmu: Use true and false for bool variable

PATCH In review Jiapeng Chong 2 participants 2 messages Mar 10, 2021 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mfd: dbx500-prcmu: Use true and false for bool variable

Fix the following coccicheck warning:

./include/linux/mfd/db8500-prcmu.h:723:8-9: WARNING: return of 0/1 in function 'db8500_prcmu_is_ac_wake_requested' with return type bool.

---
Changes in v2:
- Make the commit message more clearer.

 include/linux/mfd/db8500-prcmu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mfd/db8500-prcmu.h +1 -1
index 4b63d3e..a62de3d 100644
@@ -720,7 +720,7 @@ static inline int db8500_prcmu_load_a9wdog(u8 id, u32 val)
 
 static inline bool db8500_prcmu_is_ac_wake_requested(void)
 {
-	return 0;
+	return false;
 }
 
 static inline int db8500_prcmu_set_arm_opp(u8 opp)
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 10 lines · Jiapeng Chong

Fix the following coccicheck warning:

./include/linux/mfd/db8500-prcmu.h:723:8-9: WARNING: return of 0/1 in function 'db8500_prcmu_is_ac_wake_requested' with return type bool.

---
Changes in v2:
- Make the commit message more clearer.

I already fixed and applied this.

Please take a look at my reply to v1.

Quoted 2 lines
 include/linux/mfd/db8500-prcmu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 4 lines
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog