Skip to content

Commit 9fe1617

Browse files
Zhang Hengmiquelraynal
authored andcommitted
mtd: rawnand: gpmi: Use str_enabled_disabled() in gpmi_nand_attach_chip()
Remove hard-coded strings by using the str_enabled_disabled() helper function. Signed-off-by: Zhang Heng <[email protected]> Reviewed-by: Han Xu <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 6bc9f42 commit 9fe1617

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/pm_runtime.h>
1818
#include <linux/pinctrl/consumer.h>
1919
#include <linux/dma/mxs-dma.h>
20+
#include <linux/string_choices.h>
2021
#include "gpmi-nand.h"
2122
#include "gpmi-regs.h"
2223
#include "bch-regs.h"
@@ -2319,8 +2320,8 @@ static int gpmi_nand_attach_chip(struct nand_chip *chip)
23192320
"fsl,no-blockmark-swap"))
23202321
this->swap_block_mark = false;
23212322
}
2322-
dev_dbg(this->dev, "Blockmark swapping %sabled\n",
2323-
this->swap_block_mark ? "en" : "dis");
2323+
dev_dbg(this->dev, "Blockmark swapping %s\n",
2324+
str_enabled_disabled(this->swap_block_mark));
23242325

23252326
ret = gpmi_init_last(this);
23262327
if (ret)

0 commit comments

Comments
 (0)