mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
net: dsa: realtek: rtl8365mb: Make use of 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: Vasileios Amoiridis <vassilisamir@gmail.com> Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk> Link: https://patch.msgid.link/20240904151018.71967-2-vassilisamir@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
54001d0f2f
commit
517c292475
@ -1740,7 +1740,7 @@ static int rtl8365mb_irq_setup(struct realtek_priv *priv)
|
||||
}
|
||||
|
||||
/* Configure chip interrupt signal polarity */
|
||||
irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq));
|
||||
irq_trig = irq_get_trigger_type(irq);
|
||||
switch (irq_trig) {
|
||||
case IRQF_TRIGGER_RISING:
|
||||
case IRQF_TRIGGER_HIGH:
|
||||
|
Loading…
Reference in New Issue
Block a user