mtd: rfd_ftl: use container_of() rather than cast

The container_of() is much more readable and also safer.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210807214538.14484-6-sean@mess.org
This commit is contained in:
Sean Young 2021-08-07 22:45:38 +01:00 • committed by Miquel Raynal
commit fa451399d6