mtd: rawnand: Add a helper to clarify the interface configuration
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 5 May 2021 21:37:29 +0000 (23:37 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 26 May 2021 08:43:31 +0000 (10:43 +0200)
commit961965c45c706175b24227868b1c12d72775e446
tree4c3515c277ff16d7976906b30a3ae045562af954
parentfd0d8d85f7230052e638a56d1bfea170c488e6bc
mtd: rawnand: Add a helper to clarify the interface configuration

Name it nand_interface_is_sdr() which will make even more sense when
nand_interface_is_nvddr() will be introduced.

Use it when relevant.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210505213750.257417-2-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/atmel/nand-controller.c
include/linux/mtd/rawnand.h