iio: pressure: bmp280: add support for BMP180

This adds support for the BMP180 to the bmp280 iio driver.

The BMP180 has already been supported by misc/bmp085 driver but it
doesn't use iio framework.  This change adds the kconfig dependency
not to be selected both of them in order to avoid any issues.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Vlad Dogaru <vlad.dogaru@intel.com>
Cc: Christoph Mair <christoph.mair@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Akinobu Mita
2016-04-24 22:52:10 +09:00
committed by Jonathan Cameron
parent 06ad7ea10e
commit 6dba72eca7
2 changed files with 357 additions and 17 deletions
+4 -3
View File
@@ -6,12 +6,13 @@
menu "Pressure sensors"
config BMP280
tristate "Bosch Sensortec BMP280 pressure sensor driver"
tristate "Bosch Sensortec BMP180 and BMP280 pressure sensor driver"
depends on I2C
depends on !(BMP085_I2C=y || BMP085_I2C=m)
select REGMAP_I2C
help
Say yes here to build support for Bosch Sensortec BMP280
pressure and temperature sensor.
Say yes here to build support for Bosch Sensortec BMP180 and BMP280
pressure and temperature sensors.
To compile this driver as a module, choose M here: the module
will be called bmp280.