• M
    mtd: nand: fsmc: get rid of IO_ADDR_[R|W] · 4df6ed4f
    Miquel Raynal 提交于
    Remove the use of IO_ADDR_[R|W] in the fsmc_nand driver. Instead, use a
    pointer to the control registers to avoid doing several arithmetic
    operations (including a multiplication) each time a control register is
    read or written.
    
    All references to IO_ADDR_[R|W] are not entirely removed from the driver
    as, at this time, these values are needed by the NAND core in the
    default ->read/write_byte/word() hooks. These references will be
    entirely removed when switching to ->exec_op(), that does not make use
    of these hooks anymore.
    Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
    Signed-off-by: NBoris Brezillon <boris.brezillon@bootlin.com>
    4df6ed4f
fsmc_nand.c 29.4 KB