mtd: Use of_property_read_bool() for boolean properties
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:15 +0000 (08:47 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 22 Mar 2023 16:02:17 +0000 (17:02 +0100)
commit57150c40b6391bc350c6016641b2a487a3de3cba
treec903efd337f06e4d99d835fb126c7e5ff8fd4275
parent75f32f4b9d5263829d1d13f990000db929140559
mtd: Use of_property_read_bool() for boolean properties

It is preferred to use typed property access functions (i.e.
of_property_read_<type> functions) rather than low-level
of_get_property/of_find_property functions for reading properties.
Convert reading boolean properties to to of_property_read_bool().

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230310144716.1543995-1-robh@kernel.org
drivers/mtd/devices/spear_smi.c
drivers/mtd/maps/sun_uflash.c
drivers/mtd/mtdcore.c
drivers/mtd/nand/raw/fsmc_nand.c
drivers/mtd/nand/raw/nand_macronix.c
drivers/mtd/spi-nor/controllers/nxp-spifi.c