iio: pressure: bmp280: split driver in logical parts
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Jun 2016 01:48:49 +0000 (03:48 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Jul 2016 10:27:11 +0000 (11:27 +0100)
commit14e8015f8569d9634479a4a461e7c138d60d99ca
treef615fa7e7d955050ee6ab8901f4cf052529a4f82
parentbd525e6c7521c45785c87d6ecade4e047634cd3c
iio: pressure: bmp280: split driver in logical parts

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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/Makefile
drivers/iio/pressure/bmp280-core.c [new file with mode: 0644]
drivers/iio/pressure/bmp280-i2c.c [new file with mode: 0644]
drivers/iio/pressure/bmp280-regmap.c [new file with mode: 0644]
drivers/iio/pressure/bmp280.c [deleted file]
drivers/iio/pressure/bmp280.h [new file with mode: 0644]