Thread (27 messages) 27 messages, 4 authors, 2025-10-28

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

From: Jernej Škrabec <jernej.skrabec@gmail.com>
Date: 2025-10-28 15:35:00
Also in: linux-devicetree, linux-sunxi, lkml

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@bootlin.com>
Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help