mtd: cfi: Support early CFI fixups
authorAaron Sierra <asierra@xes-inc.com>
Mon, 30 Apr 2018 16:34:49 +0000 (11:34 -0500)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 4 May 2018 07:50:19 +0000 (09:50 +0200)
commitb1c97e2335f24dbdcc26cfdc882b8b5a0bad25c2
treec8ed6026cc8627b09e5abd8e78823f5fc4a49b4f
parent051529d0c010a07c84fb42626053e4df610857c5
mtd: cfi: Support early CFI fixups

Some CFI devices need fixups that affect the number of chips detected,
but the current fixup infrastructure (struct cfi_fixup and cfi_fixup())
does not cover this situation.

Introduce struct cfi_early_fixup and cfi_early_fixup() to fill the void.

Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/chips/cfi_probe.c