From: Matthias Brugger <matthias.bgg@gmail.com>
To: Xichao Zhao <zhao.xichao@vivo.com>,
angelogioacchino.delregno@collabora.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] soc: mediatek: use bool as the function return type
Date: Sun, 7 Sep 2025 10:59:58 +0200 [thread overview]
Message-ID: <e1c2721f-fb38-435f-8351-3d28f13ad4ec@gmail.com> (raw)
In-Reply-To: <20250811034539.175237-1-zhao.xichao@vivo.com>
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;
prev parent reply other threads:[~2025-09-07 9:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-11 3:45 Xichao Zhao
2025-09-07 8:59 ` Matthias Brugger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e1c2721f-fb38-435f-8351-3d28f13ad4ec@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zhao.xichao@vivo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®