]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mtd: spi-nor: debugfs: Fix the flags list
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 26 May 2026 14:56:25 +0000 (16:56 +0200)
committerPratyush Yadav <pratyush@kernel.org>
Tue, 26 May 2026 15:21:03 +0000 (17:21 +0200)
As mentioned above the spi_nor_option_flags enumeration in core.h, this
list should be kept in sync with the one in the core.

Add the missing flag.

Fixes: 6a42bc97ccda ("mtd: spi-nor: core: Allow specifying the byte order in Octal DTR mode")
Reviewed-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
drivers/mtd/spi-nor/debugfs.c

index fa6956144d2e4458ff0e78c5c317a52748b02047..d700e0b271822d034e56903e7b437d89c653f3e7 100644 (file)
@@ -28,6 +28,7 @@ static const char *const snor_f_names[] = {
        SNOR_F_NAME(RWW),
        SNOR_F_NAME(ECC),
        SNOR_F_NAME(NO_WP),
+       SNOR_F_NAME(SWAP16),
 };
 #undef SNOR_F_NAME