[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250313143355.j5ft7udrkclnlscv@cozumel>
Date: Thu, 13 Mar 2025 09:33:55 -0500
From: "han.xu" <han.xu@....com>
To: Zhang Heng <zhangheng@...inos.cn>
Cc: miquel.raynal@...tlin.com, richard@....at, vigneshr@...com, hs@...x.de,
david@...tonic.nl, jre@...gutronix.de,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
imx@...ts.linux.dev
Subject: Re: [PATCH 1/2] mtd: rawnand: gpmi: Use str_enabled_disabled() in
gpmi_nand_attach_chip()
On 25/03/13 05:57PM, Zhang Heng wrote:
> [You don't often get email from zhangheng@...inos.cn. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Remove hard-coded strings by using the str_enabled_disabled() helper
> function.
>
> Signed-off-by: Zhang Heng <zhangheng@...inos.cn>
> ---
> drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
> index d76802944453..f4e68008ea03 100644
> --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
> +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
> @@ -17,6 +17,7 @@
> #include <linux/pm_runtime.h>
> #include <linux/pinctrl/consumer.h>
> #include <linux/dma/mxs-dma.h>
> +#include <linux/string_choices.h>
> #include "gpmi-nand.h"
> #include "gpmi-regs.h"
> #include "bch-regs.h"
> @@ -2319,8 +2320,8 @@ static int gpmi_nand_attach_chip(struct nand_chip *chip)
> "fsl,no-blockmark-swap"))
> this->swap_block_mark = false;
> }
> - dev_dbg(this->dev, "Blockmark swapping %sabled\n",
> - this->swap_block_mark ? "en" : "dis");
> + dev_dbg(this->dev, "Blockmark swapping %s\n",
> + str_enabled_disabled(this->swap_block_mark));
Reviewed-by: Han Xu <han.xu@....com>
>
> ret = gpmi_init_last(this);
> if (ret)
> --
> 2.47.1
>
Powered by blists - more mailing lists