mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] soc: mediatek: use bool as the function return type
@ 2025-08-11  3:45 Xichao Zhao
  2025-09-07  8:59 ` Matthias Brugger
  0 siblings, 1 reply; 2+ messages in thread
From: Xichao Zhao @ 2025-08-11  3:45 UTC (permalink / raw)
  To: matthias.bgg, angelogioacchino.delregno; +Cc: linux-kernel, Xichao Zhao

The function only returns true and false, and the places using the
function also expect a bool return type. Therefore, the function's
return type is changed from int to bool.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
---
 drivers/soc/mediatek/mtk-devapc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/mediatek/mtk-devapc.c b/drivers/soc/mediatek/mtk-devapc.c
index f54c966138b5..33254a979156 100644
--- a/drivers/soc/mediatek/mtk-devapc.c
+++ b/drivers/soc/mediatek/mtk-devapc.c
@@ -109,7 +109,7 @@ static void mask_module_irq(struct mtk_devapc_context *ctx, bool mask)
  *                       info to VIO_DBGs registers.
  *
  */
-static int devapc_sync_vio_dbg(struct mtk_devapc_context *ctx)
+static bool devapc_sync_vio_dbg(struct mtk_devapc_context *ctx)
 {
 	void __iomem *pd_vio_shift_sta_reg;
 	void __iomem *pd_vio_shift_sel_reg;
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] soc: mediatek: use bool as the function return type
  2025-08-11  3:45 [PATCH] soc: mediatek: use bool as the function return type Xichao Zhao
@ 2025-09-07  8:59 ` Matthias Brugger
  0 siblings, 0 replies; 2+ messages in thread
From: Matthias Brugger @ 2025-09-07  8:59 UTC (permalink / raw)
  To: Xichao Zhao, angelogioacchino.delregno; +Cc: linux-kernel



On 11/08/2025 05:45, Xichao Zhao wrote:
> The function only returns true and false, and the places using the
> function also expect a bool return type. Therefore, the function's
> return type is changed from int to bool.
> 
> Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>

Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>

> ---
>   drivers/soc/mediatek/mtk-devapc.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/soc/mediatek/mtk-devapc.c b/drivers/soc/mediatek/mtk-devapc.c
> index f54c966138b5..33254a979156 100644
> --- a/drivers/soc/mediatek/mtk-devapc.c
> +++ b/drivers/soc/mediatek/mtk-devapc.c
> @@ -109,7 +109,7 @@ static void mask_module_irq(struct mtk_devapc_context *ctx, bool mask)
>    *                       info to VIO_DBGs registers.
>    *
>    */
> -static int devapc_sync_vio_dbg(struct mtk_devapc_context *ctx)
> +static bool devapc_sync_vio_dbg(struct mtk_devapc_context *ctx)
>   {
>   	void __iomem *pd_vio_shift_sta_reg;
>   	void __iomem *pd_vio_shift_sel_reg;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-07  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-11  3:45 [PATCH] soc: mediatek: use bool as the function return type Xichao Zhao
2025-09-07  8:59 ` Matthias Brugger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®