mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
iio: adc: ti-ads1015: use irq_get_trigger_type()
Use irq_get_trigger_type() to replace getting the irq data then the type in two steps. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20240901135950.797396-4-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
9f8d758345
commit
57f91983c9
|
|
@ -1032,8 +1032,7 @@ static int ads1015_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
if (client->irq && chip->has_comparator) {
|
||||
unsigned long irq_trig =
|
||||
irqd_get_trigger_type(irq_get_irq_data(client->irq));
|
||||
unsigned long irq_trig = irq_get_trigger_type(client->irq);
|
||||
unsigned int cfg_comp_mask = ADS1015_CFG_COMP_QUE_MASK |
|
||||
ADS1015_CFG_COMP_LAT_MASK | ADS1015_CFG_COMP_POL_MASK;
|
||||
unsigned int cfg_comp =
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user