]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mtd: spi-nor: swp: Clarify a comment
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 26 May 2026 14:56:33 +0000 (16:56 +0200)
committerPratyush Yadav <pratyush@kernel.org>
Tue, 26 May 2026 15:21:04 +0000 (17:21 +0200)
The comment states that some power of two sizes are not supported. This
is very device dependent (based on the size), so modulate a bit the
sentence to make it more accurate.

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/swp.c

index d5f4bf555cfc6ff5c7c2a28f35fb3785538da8d1..f221d6361b572eeaf20341c85a09622cd5b8dca7 100644 (file)
@@ -305,7 +305,7 @@ static int spi_nor_sr_unlock(struct spi_nor *nor, loff_t ofs, u64 len)
                if (nor->flags & SNOR_F_HAS_SR_BP3_BIT6 && val & SR_BP3)
                        val = (val & ~SR_BP3) | SR_BP3_BIT6;
 
-               /* Some power-of-two sizes are not supported */
+               /* Some power-of-two sizes may not be supported */
                if (val & ~mask)
                        return -EINVAL;
        }