iio:pressure: Adds LPS001WP support also on spi interface and Kconfig fix
authorDenis CIOCCA <denis.ciocca@st.com>
Tue, 22 Oct 2013 18:32:00 +0000 (19:32 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 23 Oct 2013 16:55:14 +0000 (17:55 +0100)
Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/Kconfig
drivers/iio/pressure/st_pressure_spi.c

index 26fdc0bdb99d59d8f8a956252d5d927f6b553551..4f2e0f9bad8c100d89a43265daa0af8bb3b7450b 100644 (file)
@@ -14,7 +14,7 @@ config IIO_ST_PRESS
        select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
        help
          Say yes here to build support for STMicroelectronics pressure
-         sensors: LPS331AP.
+         sensors: LPS001WP, LPS331AP.
 
          This driver can also be built as a module. If so, these modules
          will be created:
index 399a29b6017b25336e9f9bf052d4488b941f28f1..27322af6d665857a52435f139beca6a7689995f0 100644 (file)
@@ -48,6 +48,7 @@ static int st_press_spi_remove(struct spi_device *spi)
 }
 
 static const struct spi_device_id st_press_id_table[] = {
+       { LPS001WP_PRESS_DEV_NAME },
        { LPS331AP_PRESS_DEV_NAME },
        {},
 };