mtd: rawnand: Move the ->exec_op() method to nand_controller_ops
->exec_op() is a controller method and has nothing to do in the nand_chip struct. Let's move it to the nand_controller_ops struct and adjust the core and drivers accordingly. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Tested-by: Janusz Krzysztofik <jmkrzyszt@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:

committed by
Miquel Raynal

parent
7d6c37e90c
commit
f2abfeb207
@@ -577,7 +577,7 @@ void nand_legacy_set_defaults(struct nand_chip *chip)
|
||||
{
|
||||
unsigned int busw = chip->options & NAND_BUSWIDTH_16;
|
||||
|
||||
if (chip->exec_op)
|
||||
if (nand_has_exec_op(chip))
|
||||
return;
|
||||
|
||||
/* check for proper chip_delay setup, set 20us if not */
|
||||
@@ -621,7 +621,7 @@ int nand_legacy_check_hooks(struct nand_chip *chip)
|
||||
* ->legacy.cmdfunc() is legacy and will only be used if ->exec_op() is
|
||||
* not populated.
|
||||
*/
|
||||
if (chip->exec_op)
|
||||
if (nand_has_exec_op(chip))
|
||||
return 0;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user