mtd: rawnand: Pass a nand_chip object to chip->waitfunc()
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->waitfunc() hook. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
这个提交包含在:
@@ -186,10 +186,9 @@ static irqreturn_t tmio_irq(int irq, void *__tmio)
|
||||
*erase and write, we enable it to wake us up. The irq handler
|
||||
*disables the interrupt.
|
||||
*/
|
||||
static int
|
||||
tmio_nand_wait(struct mtd_info *mtd, struct nand_chip *nand_chip)
|
||||
static int tmio_nand_wait(struct nand_chip *nand_chip)
|
||||
{
|
||||
struct tmio_nand *tmio = mtd_to_tmio(mtd);
|
||||
struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(nand_chip));
|
||||
long timeout;
|
||||
u8 status;
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户