]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: rawnand: sunxi: Replace hard coded value by a define
authorRichard Genoud <richard.genoud@bootlin.com>
Tue, 28 Oct 2025 07:34:56 +0000 (08:34 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 28 Oct 2025 16:16:01 +0000 (17:16 +0100)
commit1be7ac78b72f25e0e2ae2288944da31d08edc2f6
treea7e2492afc2c5297f07541ecbe0844bc222325f1
parentdeaa77ed66bf6ed1f7c06c183bd7a5bc0d931c62
mtd: rawnand: sunxi: Replace hard coded value by a define

The user data length (4) used all over the code hard coded.
And sometimes, it's not that trivial to know that it's the user data
length and not something else.
Moreover, for the H6/H616 this value is no more fixed by hardware, but
could be modified.

Using a define here makes the code more readable.

Suggested-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/sunxi_nand.c