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>
This commit is contained in:
parent
c176becd81
commit
bc27381edb
6 changed files with 39 additions and 26 deletions
|
|
@ -166,6 +166,7 @@ struct st_sensor_transfer_function {
|
|||
/**
|
||||
* struct st_sensor_settings - ST specific sensor settings
|
||||
* @wai: Contents of WhoAmI register.
|
||||
* @wai_addr: The address of WhoAmI register.
|
||||
* @sensors_supported: List of supported sensors by struct itself.
|
||||
* @ch: IIO channels for the sensor.
|
||||
* @odr: Output data rate register and ODR list available.
|
||||
|
|
@ -179,6 +180,7 @@ struct st_sensor_transfer_function {
|
|||
*/
|
||||
struct st_sensor_settings {
|
||||
u8 wai;
|
||||
u8 wai_addr;
|
||||
char sensors_supported[ST_SENSORS_MAX_4WAI][ST_SENSORS_MAX_NAME];
|
||||
struct iio_chan_spec *ch;
|
||||
int num_ch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue