Commit 9fe1617d authored by Zhang Heng's avatar Zhang Heng Committed by Miquel Raynal
Browse files

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: default avatarZhang Heng <zhangheng@kylinos.cn>
Reviewed-by: default avatarHan Xu <han.xu@nxp.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 6bc9f427
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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));

	ret = gpmi_init_last(this);
	if (ret)