[PATCH v4 03/16] mtd: rawnand: sunxi: Replace hard coded value by a define

Jernej Škrabec jernej.skrabec at gmail.com
Tue Oct 28 08:34:57 PDT 2025


Dne torek, 28. oktober 2025 ob 08:34:56 Srednjeevropski standardni čas je Richard Genoud napisal(a):
> 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 at bootlin.com>
> Signed-off-by: Richard Genoud <richard.genoud at bootlin.com>

Acked-by: Jernej Skrabec <jernej.skrabec at gmail.com>

Best regards,
Jernej





More information about the linux-mtd mailing list