mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
iio: st_sensors: decouple irq1 configuration parameters from the irq2 ones
Separate data-ready configuration parameters for INT1 and INT2 pins in st_sensor_data_ready_irq data structure. That change will be use to properly support LIS2DW12 accel sensor. Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
e72a060151
commit
75d4c6d2e1
6 changed files with 104 additions and 61 deletions
|
@ -132,9 +132,8 @@ struct st_sensor_das {
|
|||
|
||||
/**
|
||||
* struct st_sensor_data_ready_irq - ST sensor device data-ready interrupt
|
||||
* @addr: address of the register.
|
||||
* @mask_int1: mask to enable/disable IRQ on INT1 pin.
|
||||
* @mask_int2: mask to enable/disable IRQ on INT2 pin.
|
||||
* struct int1 - data-ready configuration register for INT1 pin.
|
||||
* struct int2 - data-ready configuration register for INT2 pin.
|
||||
* @addr_ihl: address to enable/disable active low on the INT lines.
|
||||
* @mask_ihl: mask to enable/disable active low on the INT lines.
|
||||
* @addr_od: address to enable/disable Open Drain on the INT lines.
|
||||
|
@ -145,9 +144,14 @@ struct st_sensor_das {
|
|||
* @en_mask: mask to write the on/off value for enable.
|
||||
*/
|
||||
struct st_sensor_data_ready_irq {
|
||||
u8 addr;
|
||||
u8 mask_int1;
|
||||
u8 mask_int2;
|
||||
struct {
|
||||
u8 addr;
|
||||
u8 mask;
|
||||
} int1;
|
||||
struct {
|
||||
u8 addr;
|
||||
u8 mask;
|
||||
} int2;
|
||||
u8 addr_ihl;
|
||||
u8 mask_ihl;
|
||||
u8 addr_od;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue