mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
iio: remove get_irq_data_ready() function pointer and use IRQ number directly
Not even sure why it was there since the beginning. Just use IRQ number in the sensor_data struct. Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
48cceecfa7
commit
9cd15d521a
8 changed files with 26 additions and 46 deletions
|
@ -220,7 +220,7 @@ struct st_sensor_settings {
|
|||
* num_data_channels: Number of data channels used in buffer.
|
||||
* @drdy_int_pin: Redirect DRDY on pin 1 (1) or pin 2 (2).
|
||||
* @int_pin_open_drain: Set the interrupt/DRDY to open drain.
|
||||
* @get_irq_data_ready: Function to get the IRQ used for data ready signal.
|
||||
* @irq: the IRQ number.
|
||||
* @edge_irq: the IRQ triggers on edges and need special handling.
|
||||
* @hw_irq_trigger: if we're using the hardware interrupt on the sensor.
|
||||
* @hw_timestamp: Latest timestamp from the interrupt handler, when in use.
|
||||
|
@ -244,8 +244,7 @@ struct st_sensor_data {
|
|||
|
||||
u8 drdy_int_pin;
|
||||
bool int_pin_open_drain;
|
||||
|
||||
unsigned int (*get_irq_data_ready) (struct iio_dev *indio_dev);
|
||||
int irq;
|
||||
|
||||
bool edge_irq;
|
||||
bool hw_irq_trigger;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue