summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure/Makefile
diff options
context:
space:
mode:
authorLinus Walleij2016-06-30 03:48:50 +0200
committerJonathan Cameron2016-07-03 12:27:14 +0200
commit17118843a563c681aaafb29621befba02f28c592 (patch)
treeb54dbe176ad9432f92122f0a55b60be390238f0d /drivers/iio/pressure/Makefile
parentiio: pressure: bmp280: split driver in logical parts (diff)
downloadkernel-qcow2-linux-17118843a563c681aaafb29621befba02f28c592.tar.gz
kernel-qcow2-linux-17118843a563c681aaafb29621befba02f28c592.tar.xz
kernel-qcow2-linux-17118843a563c681aaafb29621befba02f28c592.zip
iio: pressure: bmp280: split off an I2C Kconfig entry
This creates a separate BMP280_I2C Kconfig entry that gets selected by BMP280 for I2C transport. As we currently only support I2C transport there is not much practical change other than getting a separate object file (or module) for the I2C driver part. The old Kconfig symbol BMP280 will still select the stuff we need so that oldconfig and old defconfigs works fine. Tested-by: Akinobu Mita <akinobu.mita@gmail.com> 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/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/pressure/Makefile b/drivers/iio/pressure/Makefile
index 2d98a7ff77a8..736f4305fe46 100644
--- a/drivers/iio/pressure/Makefile
+++ b/drivers/iio/pressure/Makefile
@@ -4,7 +4,8 @@
# 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
+bmp280-objs := bmp280-core.o bmp280-regmap.o
+obj-$(CONFIG_BMP280_I2C) += bmp280-i2c.o
obj-$(CONFIG_HID_SENSOR_PRESS) += hid-sensor-press.o
obj-$(CONFIG_HP03) += hp03.o
obj-$(CONFIG_MPL115) += mpl115.o