• Linus Walleij's avatar
    iio: pressure: bmp280: split driver in logical parts · 14e8015f
    Linus Walleij authored
    This splits the BMP280 driver in three logical parts: the core driver
    bmp280-core that only operated on a struct device * and a struct regmap *,
    the regmap driver bmp280-regmap that can be shared between I2C and other
    transports and the I2C module driver bmp280-i2c.
    
    Cleverly bake all functionality into a single object bmp280.o so that
    we still get the same module binary built for the device in the end,
    without any fuzz exporting symbols to the left and right.
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
    14e8015f
bmp280-regmap.c 1.6 KB