diff options
| author | Giuseppe Barba <giuseppe.barba@st.com> | 2015-07-21 04:35:41 -0400 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2015-07-23 15:43:04 -0400 |
| commit | bc27381edbeb654d819b7e1464091c456a0d3e64 (patch) | |
| tree | 21aadbc324a1c8f5cefa55e4983723eea668043c /include/linux/iio | |
| parent | c176becd81843426eb8ab3b03aeeb19e387345fe (diff) | |
iio: st-sensors: add configuration for WhoAmI address
This patch permits to configure the WhoAmI register address
because some device could have not a standard address for
this register.
Signed-off-by: Giuseppe Barba <giuseppe.barba@st.com>
Reviewed-by: Denis Ciocca <denis.ciocca@st.com>
Acked-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio')
| -rw-r--r-- | include/linux/iio/common/st_sensors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iio/common/st_sensors.h b/include/linux/iio/common/st_sensors.h index 2c476acb87d9..3c17cd7fdf06 100644 --- a/include/linux/iio/common/st_sensors.h +++ b/include/linux/iio/common/st_sensors.h | |||
| @@ -166,6 +166,7 @@ struct st_sensor_transfer_function { | |||
| 166 | /** | 166 | /** |
| 167 | * struct st_sensor_settings - ST specific sensor settings | 167 | * struct st_sensor_settings - ST specific sensor settings |
| 168 | * @wai: Contents of WhoAmI register. | 168 | * @wai: Contents of WhoAmI register. |
| 169 | * @wai_addr: The address of WhoAmI register. | ||
| 169 | * @sensors_supported: List of supported sensors by struct itself. | 170 | * @sensors_supported: List of supported sensors by struct itself. |
| 170 | * @ch: IIO channels for the sensor. | 171 | * @ch: IIO channels for the sensor. |
| 171 | * @odr: Output data rate register and ODR list available. | 172 | * @odr: Output data rate register and ODR list available. |
| @@ -179,6 +180,7 @@ struct st_sensor_transfer_function { | |||
| 179 | */ | 180 | */ |
| 180 | struct st_sensor_settings { | 181 | struct st_sensor_settings { |
| 181 | u8 wai; | 182 | u8 wai; |
| 183 | u8 wai_addr; | ||
| 182 | char sensors_supported[ST_SENSORS_MAX_4WAI][ST_SENSORS_MAX_NAME]; | 184 | char sensors_supported[ST_SENSORS_MAX_4WAI][ST_SENSORS_MAX_NAME]; |
| 183 | struct iio_chan_spec *ch; | 185 | struct iio_chan_spec *ch; |
| 184 | int num_ch; | 186 | int num_ch; |
