diff options
Diffstat (limited to 'include/linux/iio/common/st_sensors.h')
| -rw-r--r-- | include/linux/iio/common/st_sensors.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/iio/common/st_sensors.h b/include/linux/iio/common/st_sensors.h index e51f65480ea5..3c005eb3a0a4 100644 --- a/include/linux/iio/common/st_sensors.h +++ b/include/linux/iio/common/st_sensors.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #include <linux/irqreturn.h> | 16 | #include <linux/irqreturn.h> |
| 17 | #include <linux/iio/trigger.h> | 17 | #include <linux/iio/trigger.h> |
| 18 | #include <linux/bitops.h> | 18 | #include <linux/bitops.h> |
| 19 | #include <linux/regulator/consumer.h> | ||
| 19 | 20 | ||
| 20 | #include <linux/platform_data/st_sensors_pdata.h> | 21 | #include <linux/platform_data/st_sensors_pdata.h> |
| 21 | 22 | ||
| @@ -184,6 +185,7 @@ struct st_sensors { | |||
| 184 | u8 wai; | 185 | u8 wai; |
| 185 | char sensors_supported[ST_SENSORS_MAX_4WAI][ST_SENSORS_MAX_NAME]; | 186 | char sensors_supported[ST_SENSORS_MAX_4WAI][ST_SENSORS_MAX_NAME]; |
| 186 | struct iio_chan_spec *ch; | 187 | struct iio_chan_spec *ch; |
| 188 | int num_ch; | ||
| 187 | struct st_sensor_odr odr; | 189 | struct st_sensor_odr odr; |
| 188 | struct st_sensor_power pw; | 190 | struct st_sensor_power pw; |
| 189 | struct st_sensor_axis enable_axis; | 191 | struct st_sensor_axis enable_axis; |
| @@ -200,6 +202,8 @@ struct st_sensors { | |||
| 200 | * @trig: The trigger in use by the core driver. | 202 | * @trig: The trigger in use by the core driver. |
| 201 | * @sensor: Pointer to the current sensor struct in use. | 203 | * @sensor: Pointer to the current sensor struct in use. |
| 202 | * @current_fullscale: Maximum range of measure by the sensor. | 204 | * @current_fullscale: Maximum range of measure by the sensor. |
| 205 | * @vdd: Pointer to sensor's Vdd power supply | ||
| 206 | * @vdd_io: Pointer to sensor's Vdd-IO power supply | ||
| 203 | * @enabled: Status of the sensor (false->off, true->on). | 207 | * @enabled: Status of the sensor (false->off, true->on). |
| 204 | * @multiread_bit: Use or not particular bit for [I2C/SPI] multiread. | 208 | * @multiread_bit: Use or not particular bit for [I2C/SPI] multiread. |
| 205 | * @buffer_data: Data used by buffer part. | 209 | * @buffer_data: Data used by buffer part. |
| @@ -215,6 +219,8 @@ struct st_sensor_data { | |||
| 215 | struct iio_trigger *trig; | 219 | struct iio_trigger *trig; |
| 216 | struct st_sensors *sensor; | 220 | struct st_sensors *sensor; |
| 217 | struct st_sensor_fullscale_avl *current_fullscale; | 221 | struct st_sensor_fullscale_avl *current_fullscale; |
| 222 | struct regulator *vdd; | ||
| 223 | struct regulator *vdd_io; | ||
| 218 | 224 | ||
| 219 | bool enabled; | 225 | bool enabled; |
| 220 | bool multiread_bit; | 226 | bool multiread_bit; |
