Message ID | 20240904151018.71967-4-vassilisamir@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f4bbf496f5fd66603f75a32a27c6075e0868c76b |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Use functionality of irq_get_trigger_type() | expand |
On Wed, Sep 04, 2024 at 05:10:18PM GMT, Vasileios Amoiridis wrote: > 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> > --- > drivers/net/ethernet/smsc/smc91x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk> > > diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c > index 907498848028..a5e23e2da90f 100644 > --- a/drivers/net/ethernet/smsc/smc91x.c > +++ b/drivers/net/ethernet/smsc/smc91x.c > @@ -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; > > -- > 2.25.1 >
diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index 907498848028..a5e23e2da90f 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -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;
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> --- drivers/net/ethernet/smsc/smc91x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)