• P
    regmap: core: allow a virtual range to cover its own data window · f161d220
    Philipp Zabel 提交于
    I see no reason why a virtual range shouldn't be allowed to cover its
    own data window if the page selection register is in the same place
    on every page.
    For chips which use paged access for all of their registers, but only
    when connected via I2C, and which can access the whole register space
    directly when connected via SPI, this allows to avoid acrobatics with
    the register ranges by simply mapping the I2C ranges over the data
    window beginning at 0x0, and then using linear access for the SPI
    variant.
    Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
    Signed-off-by: NMark Brown <broonie@linaro.org>
    f161d220
regmap.c 46.9 KB