mtd: Initialize all parameters of mtd_oob_ops
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 19 Sep 2019 19:06:21 +0000 (21:06 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 8 Oct 2019 17:22:01 +0000 (19:22 +0200)
commit717bc8a6b4399f3ef907e92a01914fbae0465fd6
tree46cf0a21df15f0a64b4b39fcbbabeabcd8388a02
parent2e7c3a4cd56c8583c9e3029dfd3c6071fc8360e1
mtd: Initialize all parameters of mtd_oob_ops

Most of the time the ooboffs parameter of the mtd_oob_ops structure
was initialized only when needed. Since the introduction of the
SPI-NAND subsystem, this parameter is transferred into
nand_page_io_req structure automatically and may be used by any
SPI-NAND user.

Before this happens, initialize all the structure parameters when they
are created in mtdchar.c.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/mtdchar.c