summaryrefslogtreecommitdiff
path: root/drivers/iio/pressure/Makefile
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-06-30 04:48:49 +0300
committerJonathan Cameron <jic23@kernel.org>2016-07-03 13:27:11 +0300
commit14e8015f8569d9634479a4a461e7c138d60d99ca (patch)
treef615fa7e7d955050ee6ab8901f4cf052529a4f82 /drivers/iio/pressure/Makefile
parentbd525e6c7521c45785c87d6ecade4e047634cd3c (diff)
downloadlinux-14e8015f8569d9634479a4a461e7c138d60d99ca.tar.xz
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/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/pressure/Makefile b/drivers/iio/pressure/Makefile
index 17d6e7afa1ff..2d98a7ff77a8 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