]> Pileus Git - ~andy/linux/blob - drivers/iio/magnetometer/Kconfig
Merge remote-tracking branch 'regulator/fix/doc' into regulator-enable-invert
[~andy/linux] / drivers / iio / magnetometer / Kconfig
1 #
2 # Magnetometer sensors
3 #
4 menu "Magnetometer sensors"
5
6 config HID_SENSOR_MAGNETOMETER_3D
7         depends on HID_SENSOR_HUB
8         select IIO_BUFFER
9         select IIO_TRIGGERED_BUFFER
10         select HID_SENSOR_IIO_COMMON
11         select HID_SENSOR_IIO_TRIGGER
12         tristate "HID Magenetometer 3D"
13         help
14           Say yes here to build support for the HID SENSOR
15           Magnetometer 3D.
16
17 config IIO_ST_MAGN_3AXIS
18         tristate "STMicroelectronics magnetometers 3-Axis Driver"
19         depends on (I2C || SPI_MASTER) && SYSFS
20         select IIO_ST_SENSORS_CORE
21         select IIO_ST_MAGN_I2C_3AXIS if (I2C)
22         select IIO_ST_MAGN_SPI_3AXIS if (SPI_MASTER)
23         select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
24         select IIO_ST_MAGN_BUFFER if (IIO_TRIGGERED_BUFFER)
25         help
26           Say yes here to build support for STMicroelectronics magnetometers:
27           LSM303DLHC, LSM303DLM, LIS3MDL.
28
29           This driver can also be built as a module. If so, will be created
30           these modules:
31           - st_magn (core functions for the driver [it is mandatory]);
32           - st_magn_i2c (necessary for the I2C devices [optional*]);
33           - st_magn_spi (necessary for the SPI devices [optional*]);
34
35           (*) one of these is necessary to do something.
36
37 config IIO_ST_MAGN_I2C_3AXIS
38         tristate
39         depends on IIO_ST_MAGN_3AXIS
40         depends on IIO_ST_SENSORS_I2C
41
42 config IIO_ST_MAGN_SPI_3AXIS
43         tristate
44         depends on IIO_ST_MAGN_3AXIS
45         depends on IIO_ST_SENSORS_SPI
46
47 endmenu