]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
iio: pressure: mpl115: support MPL115A1
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 15 Jan 2016 16:00:03 +0000 (01:00 +0900)
committerJonathan Cameron <jic23@kernel.org>
Sat, 30 Jan 2016 16:27:12 +0000 (16:27 +0000)
commitc984b9cbbd17d3eb602de3802e25d975182474fa
tree742d2eda34d7889d63f8d263947f17a87e22af03
parent0b767b31889539fbc31383469317264ebee3cf08
iio: pressure: mpl115: support MPL115A1

mpl115 driver currently supports i2c interface (MPL115A2).
There is also SPI version (MPL115A1).  The difference between them
is only physical transport so we can easily support both while sharing
most of the code.

Split the driver into a core support module and one module each for I2C
and SPI support.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/Kconfig
drivers/iio/pressure/Makefile
drivers/iio/pressure/mpl115.c
drivers/iio/pressure/mpl115.h [new file with mode: 0644]
drivers/iio/pressure/mpl115_i2c.c [new file with mode: 0644]
drivers/iio/pressure/mpl115_spi.c [new file with mode: 0644]