Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <zhangheng@kylinos.cn>
Reviewed-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

authored by

Zhang Heng and committed by
Miquel Raynal
9fe1617d 6bc9f427

+3 -2
+3 -2
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
··· 17 17 #include <linux/pm_runtime.h> 18 18 #include <linux/pinctrl/consumer.h> 19 19 #include <linux/dma/mxs-dma.h> 20 + #include <linux/string_choices.h> 20 21 #include "gpmi-nand.h" 21 22 #include "gpmi-regs.h" 22 23 #include "bch-regs.h" ··· 2320 2319 "fsl,no-blockmark-swap")) 2321 2320 this->swap_block_mark = false; 2322 2321 } 2323 - dev_dbg(this->dev, "Blockmark swapping %sabled\n", 2324 - this->swap_block_mark ? "en" : "dis"); 2322 + dev_dbg(this->dev, "Blockmark swapping %s\n", 2323 + str_enabled_disabled(this->swap_block_mark)); 2325 2324 2326 2325 ret = gpmi_init_last(this); 2327 2326 if (ret)