• Mark Brown's avatar
    regmap: flat: Add flat cache type · 2ac902ce
    Mark Brown authored
    While for I2C and SPI devices the overhead of using rbtree for devices with
    only one block of registers is negligible the same isn't always going to
    be true for MMIO devices where the I/O costs are very much lower. Cater
    for these devices by adding a simple flat array type for them where the
    lookups are simple array accesses, taking us right back to the original
    ASoC cache implementation.
    
    Thanks to Magnus Damm for the discussion which prompted this.
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    2ac902ce
Makefile 326 Bytes