]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mfd: db8500-prcmu: Remove needless return in three void APIs
authorZijun Hu <quic_zijuhu@quicinc.com>
Fri, 21 Feb 2025 13:02:20 +0000 (05:02 -0800)
committerLee Jones <lee@kernel.org>
Fri, 14 Mar 2025 08:59:07 +0000 (08:59 +0000)
Remove needless 'return' in the following void APIs:

 prcmu_early_init()
 prcmu_system_reset()
 prcmu_modem_reset()

Since both the API and callee involved are void functions.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250221-rmv_return-v1-15-cc8dff275827@quicinc.com
Signed-off-by: Lee Jones <lee@kernel.org>
include/linux/mfd/dbx500-prcmu.h

index dd0fc891b2289e544f2fec7e94c8ca6d30f1fd91..98567623c9df63373dbce924e28b343452dc67a9 100644 (file)
@@ -215,7 +215,7 @@ struct prcmu_fw_version {
 
 static inline void prcmu_early_init(void)
 {
-       return db8500_prcmu_early_init();
+       db8500_prcmu_early_init();
 }
 
 static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk,
@@ -302,7 +302,7 @@ static inline int prcmu_request_ape_opp_100_voltage(bool enable)
 
 static inline void prcmu_system_reset(u16 reset_code)
 {
-       return db8500_prcmu_system_reset(reset_code);
+       db8500_prcmu_system_reset(reset_code);
 }
 
 static inline u16 prcmu_get_reset_code(void)
@@ -314,7 +314,7 @@ int prcmu_ac_wake_req(void);
 void prcmu_ac_sleep_req(void);
 static inline void prcmu_modem_reset(void)
 {
-       return db8500_prcmu_modem_reset();
+       db8500_prcmu_modem_reset();
 }
 
 static inline bool prcmu_is_ac_wake_requested(void)