mtd: rawnand: atmel: use struct_size

The comment above makes it clear that this is a single element for
legacy handling. Clarify that with struct_size and avoid manual pointer
math.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
Rosen Penev 2026-06-29 18:23:32 -07:00 • committed by Miquel Raynal
commit 591b5ac173