]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: Add a helper to check supported operations
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 7 May 2020 10:52:35 +0000 (12:52 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:42 +0000 (09:51 +0200)
commit0c5ac8ffe7872e2360ce0790a2b05408b07ff97e
tree94b87e9e14020f0a047637fd35e48cfe67a116b0
parentbe1cf2b68741b8fa2e008e232d79bbf943ed3817
mtd: rawnand: Add a helper to check supported operations

Let's use a helper to clearly check if an operation is supported or not.

Return -ENOTSUPP when ->exec_op() is not implemented as we cannot know.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200507105241.14299-8-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/internals.h