mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
Merge branch 'use-functionality-of-irq_get_trigger_type'
Vasileios Amoiridis says: ==================== Use functionality of irq_get_trigger_type() v1: https://lore.kernel.org/20240902225534.130383-1-vassilisamir@gmail.com ==================== Link: https://patch.msgid.link/20240904151018.71967-1-vassilisamir@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
5953711258
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -599,7 +599,7 @@ static int rtl8366rb_setup_cascaded_irq(struct realtek_priv *priv)
|
|||
}
|
||||
|
||||
/* Fetch IRQ edge information from the descriptor */
|
||||
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:
|
||||
|
|
|
|||
|
|
@ -2355,7 +2355,7 @@ static int smc_drv_probe(struct platform_device *pdev)
|
|||
* the resource supplies a trigger, override the irqflags with
|
||||
* the trigger flags from the resource.
|
||||
*/
|
||||
irq_resflags = irqd_get_trigger_type(irq_get_irq_data(ndev->irq));
|
||||
irq_resflags = irq_get_trigger_type(ndev->irq);
|
||||
if (irq_flags == -1 || irq_resflags & IRQF_TRIGGER_MASK)
|
||||
irq_flags = irq_resflags & IRQF_TRIGGER_MASK;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user