mtd: Avoid magic values
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 7 Mar 2023 19:25:36 +0000 (20:25 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 8 Mar 2023 14:03:53 +0000 (15:03 +0100)
commit75f32f4b9d5263829d1d13f990000db929140559
treeabf473d7cd2df2f5c215e2de9007fce5d178721e
parent5cab06156aade17fbee2fd926bce8c503e55b2b5
mtd: Avoid magic values

Nvmem producer config ID "-1" is actually defined, so use the definition
rather than hardcoding it with a magic value.

Suggested-by: Michael Walle <michael@walle.cc>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/linux-mtd/20230307192536.470997-1-miquel.raynal@bootlin.com
drivers/mtd/mtdcore.c