Denis CIOCCA | 217494e | 2013-06-03 15:58:00 +0100 | [diff] [blame^] | 1 | # |
| 2 | # Pressure drivers |
| 3 | # |
| 4 | menu "Pressure Sensors" |
| 5 | |
| 6 | config IIO_ST_PRESS |
| 7 | tristate "STMicroelectronics pressures Driver" |
| 8 | depends on (I2C || SPI_MASTER) && SYSFS |
| 9 | select IIO_ST_SENSORS_CORE |
| 10 | select IIO_ST_PRESS_I2C if (I2C) |
| 11 | select IIO_ST_PRESS_SPI if (SPI_MASTER) |
| 12 | select IIO_TRIGGERED_BUFFER if (IIO_BUFFER) |
| 13 | help |
| 14 | Say yes here to build support for STMicroelectronics pressures: |
| 15 | LPS331AP. |
| 16 | |
| 17 | This driver can also be built as a module. If so, will be created |
| 18 | these modules: |
| 19 | - st_pressure (core functions for the driver [it is mandatory]); |
| 20 | - st_pressure_i2c (necessary for the I2C devices [optional*]); |
| 21 | - st_pressure_spi (necessary for the SPI devices [optional*]); |
| 22 | |
| 23 | (*) one of these is necessary to do something. |
| 24 | |
| 25 | config IIO_ST_PRESS_I2C |
| 26 | tristate |
| 27 | depends on IIO_ST_PRESS |
| 28 | depends on IIO_ST_SENSORS_I2C |
| 29 | |
| 30 | config IIO_ST_PRESS_SPI |
| 31 | tristate |
| 32 | depends on IIO_ST_PRESS |
| 33 | depends on IIO_ST_SENSORS_SPI |
| 34 | |
| 35 | endmenu |