From: Vasileios Amoiridis <vassilisamir@gmail.com>
To: linus.walleij@linaro.org, alsi@bang-olufsen.dk, andrew@lunn.ch,
f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
nico@fluxnic.net
Cc: leitao@debian.org, u.kleine-koenig@pengutronix.de,
thorsten.blum@toblux.com, vassilisamir@gmail.com,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: [PATCH net-next v2 1/3] net: dsa: realtek: rtl8365mb: Make use of irq_get_trigger_type()
Date: Wed, 4 Sep 2024 17:10:16 +0200 [thread overview]
Message-ID: <20240904151018.71967-2-vassilisamir@gmail.com> (raw)
In-Reply-To: <20240904151018.71967-1-vassilisamir@gmail.com>
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/dsa/realtek/rtl8365mb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/realtek/rtl8365mb.c b/drivers/net/dsa/realtek/rtl8365mb.c
index b9674f68b756..ad7044b295ec 100644
--- a/drivers/net/dsa/realtek/rtl8365mb.c
+++ b/drivers/net/dsa/realtek/rtl8365mb.c
@@ -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:
--
2.25.1
next prev parent reply other threads:[~2024-09-04 15:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-04 15:10 [PATCH net-next v2 0/3] Use functionality of irq_get_trigger_type() Vasileios Amoiridis
2024-09-04 15:10 ` Vasileios Amoiridis [this message]
2024-09-04 15:40 ` [PATCH net-next v2 1/3] net: dsa: realtek: rtl8365mb: Make use " Alvin Šipraga
2024-09-10 21:58 ` Vasileios Amoiridis
2024-09-04 15:10 ` [PATCH net-next v2 2/3] net: dsa: realtek: rtl8366rb: " Vasileios Amoiridis
2024-09-04 15:10 ` [PATCH net-next v2 3/3] net: smc91x: " Vasileios Amoiridis
2024-09-04 15:41 ` Alvin Šipraga
2024-09-07 1:30 ` [PATCH net-next v2 0/3] Use functionality " patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240904151018.71967-2-vassilisamir@gmail.com \
--to=vassilisamir@gmail.com \
--cc=alsi@bang-olufsen.dk \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kuba@kernel.org \
--cc=leitao@debian.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nico@fluxnic.net \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=thorsten.blum@toblux.com \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox