diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-06-30 03:48:49 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-07-03 11:27:11 +0100 |
commit | 14e8015f8569d9634479a4a461e7c138d60d99ca (patch) | |
tree | f615fa7e7d955050ee6ab8901f4cf052529a4f82 /drivers/iio/pressure/Makefile | |
parent | bd525e6c7521c45785c87d6ecade4e047634cd3c (diff) | |
download | op-kernel-dev-14e8015f8569d9634479a4a461e7c138d60d99ca.zip op-kernel-dev-14e8015f8569d9634479a4a461e7c138d60d99ca.tar.gz |
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>
Diffstat (limited to 'drivers/iio/pressure/Makefile')
-rw-r--r-- | drivers/iio/pressure/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/pressure/Makefile b/drivers/iio/pressure/Makefile index 17d6e7a..2d98a7f 100644 --- a/drivers/iio/pressure/Makefile +++ b/drivers/iio/pressure/Makefile @@ -4,6 +4,7 @@ # When adding new entries keep the list in alphabetical order obj-$(CONFIG_BMP280) += bmp280.o +bmp280-objs := bmp280-core.o bmp280-regmap.o bmp280-i2c.o obj-$(CONFIG_HID_SENSOR_PRESS) += hid-sensor-press.o obj-$(CONFIG_HP03) += hp03.o obj-$(CONFIG_MPL115) += mpl115.o |