mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-22 03:00:30 -05:00
staging: iio: adt7316: replace irqd_get_trigger_type with irq_get_trigger_type
Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(irq). Signed-off-by: Feng Wei <feng.wei8@zte.com.cn> Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn> Link: https://patch.msgid.link/202503270957044481PK0Xb23i08BgwkodLtEC@zte.com.cn Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
0b2a4f55cc
commit
bb8d952a4f
@@ -1794,7 +1794,7 @@ static int adt7316_setup_irq(struct iio_dev *indio_dev)
|
||||
struct adt7316_chip_info *chip = iio_priv(indio_dev);
|
||||
int irq_type, ret;
|
||||
|
||||
irq_type = irqd_get_trigger_type(irq_get_irq_data(chip->bus.irq));
|
||||
irq_type = irq_get_trigger_type(chip->bus.irq);
|
||||
|
||||
switch (irq_type) {
|
||||
case IRQF_TRIGGER_HIGH:
|
||||
|
||||
Reference in New Issue
Block a user