iio: pressure: bmp280: support device tree initialization
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Jun 2016 01:48:46 +0000 (03:48 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 30 Jun 2016 19:39:36 +0000 (20:39 +0100)
commit78f5027132243b7071dc59ea6f717e2c48e12031
tree92f00be4412f19fb66fca84503cfe1c04f12240a
parent8d2c7ef80bc8a66b8c6d657a857403f93952604f
iio: pressure: bmp280: support device tree initialization

This adds device tree support to the BMP085, BMP180 and BMP280
pressure sensors. Tested on the Qualcomm APQ8060 Dragonboard:

iio:device1$ cat in_temp_input
26700
iio:device1$ cat in_pressure_input
99.185000000

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/bmp280.c