mtd: mtdconcat: map through panic write handler
authorMatt Weber <matthew.weber@rockwellcollins.com>
Tue, 2 Jun 2020 14:34:03 +0000 (09:34 -0500)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 2 Sep 2020 07:12:52 +0000 (09:12 +0200)
commit3fbe507ebd828bc8ce747181a204ddafbe5cce2f
tree11e52c665aad82ed5e1808f6c9997b582e051726
parent3e1b6469f8324bee5927b063e2aca30d3e56b907
mtd: mtdconcat: map through panic write handler

Allows a mtdconcat's subdevice->_panic_write to be used for
capturing a mtdoops dump.

Note: The ->_panic_write is mapped through from the first chip
      that is part of the concat virtual device.

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
[miquel.raynal@bootlin.com: return err, not void]
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200602143403.13465-1-matthew.weber@rockwellcollins.com
drivers/mtd/mtdconcat.c