From patchwork Wed Sep 4 15:10:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 13791090 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C36D11DB55B; Wed, 4 Sep 2024 15:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725462636; cv=none; b=btuWM+Oph/GPUmHgMlFFnOCSnoI5L4ZZnVcUx8n/73vErVc5awDMl+pR8yw0BTdL2GBx60G9zwc2FPheLI6wGVXgJCDNiomW8iHZyJ0iTgs54tMJACj1HUnNRGscU5D03Xj467su0LAlxbk76m0lva37RjjcRTRcYFxyHwuALpE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725462636; c=relaxed/simple; bh=QrUQcvnmZvtnPzZt8iGP4n9fjXwFPYGCz1cGar7E9G4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=N1ZaV4hV2K61Fy/S6UGZ2DexuDyaCrdoUBWhY++s2/IgNQg5TPwjNi7OrAO8GoLD6RHtJJSMq3sleiwSkO9giLMoQpR+2m38NqFHZFs/bIj1LLhfNbKr2lurxgp/ZMDX3CUumGpPH2/CiCs0bQOz2FXNB1pQEQXKAMPhwhCEbPE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HfOGV6pD; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HfOGV6pD" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a86859e2fc0so765551966b.3; Wed, 04 Sep 2024 08:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725462633; x=1726067433; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JVYXpp6XlxrexNwfXvthb0cGeIQ6ry7hBWcPM5Sw6j4=; b=HfOGV6pDVkG2N7C83utqr78ghPQJYhdpA6/Agjni6tLTI2OfvNJZvVt3QqV/HQm5qe zDuWLm92EDRrw7+DWF900z576cwotTWDUWeHJ0dzF7RNU5ve++ou63uEy3hY4hlCj90r YpFFxGrNFgXBlNvKbl6HyBGoZjYdzSKl5U8O9LmRSor62sftUspRhifnn9nAPHYk1zeP o3EwEkSFNxXB8lVFVpN73njddk/SHl8hFteER/PcU5Y8EvySh9m0LrzJWEMe6YlsBOq6 wz6VenjSCZ9GiLjDz37UhxhjxRcPR8MMHMddJy5HsYw+NWdY5nlC1QHKEFDcfzZHiC1k 2NSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725462633; x=1726067433; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JVYXpp6XlxrexNwfXvthb0cGeIQ6ry7hBWcPM5Sw6j4=; b=T2CUax4Qu+UJQGUphdFvrlwFNVl7N2gZl4o2KgEcLVwzUJNKBalkQ4drb8SnyzTaNs djL8uOARD93i5Ixc5SZ6ylhRhhI4NyiUoYdNN8HN8P7aFnQ2o/qfqfjf+7IhphC6oy3h 7SfTOVK5n402qtYJxJzfrkYX2WI3YD+c9rudRzNMpIAyKusL+u7G/nLAuxebieEuyPsJ it8EIykhn+847Mp6IgIjeC/2UqSljISTsceM5bHH4sFgZlS28iU0HqBJD1jIf8iLG2Nz lkxXxBL1ao2YsvFdShZ8SQv0zv3rn0tK5ygfiCKNVLLc/Rdpw8IIcN0OTswrDIkgIyxS nzUA== X-Forwarded-Encrypted: i=1; AJvYcCWCJ6trrben93YLmmCcloRPZ3SdAX31bH8mxlqBdp/hTVOdJS4OrioNNEKACWrG0Et4w+QHEyivlNmjjEo=@vger.kernel.org, AJvYcCWJWBtyr4p3ZdkxWlRVi3ltaDR9IRmojOZ9apTqZbt80HgGPywJq1ldg+gZ9MYAN1sdOfReDFKa@vger.kernel.org X-Gm-Message-State: AOJu0YxeqZN5YecAtgXggsSPLMK0/omyzQljba/pUAizsOjr++c9t7hw NQw5j9s0NEOsIoAPqfQNWQchYyoa5+MGWBkmS2lxi+JhlWLqcFil X-Google-Smtp-Source: AGHT+IGoADnZ37PuQ6DBhcHpi5YGPHXGekJrXKMl+h/IZ5Am4rR4Uj7hDb49H0CjHG7JpiFGmzy3ug== X-Received: by 2002:a17:907:3f21:b0:a7a:9ece:ea5f with SMTP id a640c23a62f3a-a8a32eda770mr313612966b.41.1725462632789; Wed, 04 Sep 2024 08:10:32 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:2f85:317:e13:c18]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8a623a6c8bsm2956666b.146.2024.09.04.08.10.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 08:10:32 -0700 (PDT) From: Vasileios Amoiridis 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 Message-Id: <20240904151018.71967-2-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240904151018.71967-1-vassilisamir@gmail.com> References: <20240904151018.71967-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org 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 Reviewed-by: Alvin Šipraga --- 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: From patchwork Wed Sep 4 15:10:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 13791091 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 147A11DEFC2; Wed, 4 Sep 2024 15:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725462638; cv=none; b=Drq0L2cnAKgYUX0L1vFDmiuaacAY+66vtMP2uNWOBGh+UePyUqFuXLKfPgbZR7Riheks1Wq/JOUtOOxtpin8/TkuM4BKb/joL3sGE/lcihjCC5enQpf5jSAVqtFlWnTEkgQdn5mOgg/kugH2t3mmkB3yFNf5+hDZkkBbqgHnRyc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725462638; c=relaxed/simple; bh=77DPBtPsKIUYtgU4WKxUAPrI/k0SzeyXIUXrWlHugoI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Geh9BdJNFKqaTH0pZtkcBdCHaFm3eddv1f/fhy3e2wpnS05gfCCYmiNaRYPpYBnObL2RvKAjO1nwxE4c+gE8B9UNsNRqIUapNFyr6S3WUeakpvDipBIkBCdYrY77lcWYi6IFzGsxHkeLQLkL0Q40TYrHNfW9BgqrKlGAPnJ4nmw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JS4BBT9L; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JS4BBT9L" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a86b46c4831so788248266b.1; Wed, 04 Sep 2024 08:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725462635; x=1726067435; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VRqHGX1dkwlnA7Nv98xmqW1O3WTx8p18LGH7Q6/PB5c=; b=JS4BBT9LgYBl0ThXpQyh7D+zSjYSCFBpv5ZEengh57cXpcj5riWmUbrEOrR7ox+tBY RN6Ccd26CfBgNMLz6xAmB0wwSeDAd3zYFIjjjZrc3NCJhIJBxmxyX4JvgnWvAMH5lAgI pz+boT9znV0oRAEPxeStGwYdJPhhDrVOaYGngNOnkLr8uJLhtkmGoRB+E0D4fCcQHRJ7 a34g94XpTCOg5gQ4CrdX6X7YTriSDRqkYiPawNUpy/R3mOFgmJj1kgxOiAcAN8XucoPD aVkFLxT/f0pMxO5862/f5ALHpDJFWKzhfxBPKk7ugDf+6rmpaWbX7GwZ7urEnyBAkP/8 wrAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725462635; x=1726067435; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VRqHGX1dkwlnA7Nv98xmqW1O3WTx8p18LGH7Q6/PB5c=; b=BifhVcZajMypzVvbu7Ozk8ZCqb+viuKNlPEOFBtgf1p7CKWufQPXd2H+OY1t8ROVCE a/kaGru7h7JLT08lyRFul7M5NfwFqGO1YO/IJTgbNICKtq/pxxS01SVGrzEwCjUQa9Uw mrSRdzux8ZHwB1gzilGD1SqP7JGJowGxBbahHGGKrlMP8zhFcDDRJMHbSh4OpID/goYJ oGp+0wJJzOzHe1dqUyJF1Ic2Mj0kMM7LZzzKnbhn14Gr+oF5fvYBPLPhe99rOkKvr8Kx QQbc0FE6H30ey4v3mmK1TuLgvqIBeeP67RN0whE+LQzfMjeq8BV2L8ORYcBkCQ+YkIfq y8Ew== X-Forwarded-Encrypted: i=1; AJvYcCULWJLdV0pVKxwb+yj9JcoDbiCxfQX2Fg704XmFGbK2YHlkkGN0KoblSC6HUTM79eOuARXtiRa/2wDsZUk=@vger.kernel.org, AJvYcCXlhnMlem8aN3LgDNFIiZXRaPSDJL2MaytMH1Jt+T+ZURcQyMWBqahMj2jWft/rCB40wqiXEom1@vger.kernel.org X-Gm-Message-State: AOJu0YxiIJfEA8sjLcZRy6dgjhFvGGpeyLyGYCl+ILy6pN686FlrSQiV YFBBzYVGEMc0W3QCT5E2lUilvPC8BqBqSN4aoEjWFdUm+MYx7jGX/DY9nY3N X-Google-Smtp-Source: AGHT+IH/VUNWzyEYZerWoaOK0fCLQrXeHAqtMooLVFTWel9m5k9dwQNHLs+uGcacYuJW4YqS9vuJ0Q== X-Received: by 2002:a17:907:7253:b0:a86:7b71:7b77 with SMTP id a640c23a62f3a-a89d8848dfemr946739066b.44.1725462635076; Wed, 04 Sep 2024 08:10:35 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:2f85:317:e13:c18]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8a623a6c8bsm2956666b.146.2024.09.04.08.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 08:10:33 -0700 (PDT) From: Vasileios Amoiridis 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 2/3] net: dsa: realtek: rtl8366rb: Make use of irq_get_trigger_type() Date: Wed, 4 Sep 2024 17:10:17 +0200 Message-Id: <20240904151018.71967-3-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240904151018.71967-1-vassilisamir@gmail.com> References: <20240904151018.71967-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(irq). Reviewed-by: Alvin Šipraga Signed-off-by: Vasileios Amoiridis --- drivers/net/dsa/realtek/rtl8366rb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/realtek/rtl8366rb.c b/drivers/net/dsa/realtek/rtl8366rb.c index 11243f89c98a..c7a8cd060587 100644 --- a/drivers/net/dsa/realtek/rtl8366rb.c +++ b/drivers/net/dsa/realtek/rtl8366rb.c @@ -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: From patchwork Wed Sep 4 15:10:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 13791092 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EFC71DFE17; Wed, 4 Sep 2024 15:10:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725462642; cv=none; b=r1YkIEnB0c9dDtxDko0LeDyff+XouHtjZdcNghuNBCBINHpfVmHEu9KCX8pDukub04oE0QtQ+QXNPEPLIR/ChJQmKdvReMQCoHvtcGyBD2LLmoxxyssE+bwRYZM7oeSx0btDnyVs9HC6qof6DEOaUALw3HoaZHHU5Kd5EjK0d5I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725462642; c=relaxed/simple; bh=PdsMdAs4i+1KnGUSIyj6Cvkto8ku+RF2Yz6vhnepAIY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JZJr2I+X/EZ45vDYRn3ar8b9etAamonOfn+wgq/Sj5cIe2FBqCRy+WmQ+CDHy/RZNnDsmeW6+rJYfIThB+7nSZ6ixiseg0lnTfIJyEWplPBJ6tsNmhbPlMmEmkR9xmBqA4GOfDMA8XwbdEODErCod0I3YdP+Fy9NC6b4a34YRek= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WT1gr4R2; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WT1gr4R2" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-5334c4d6829so8455684e87.2; Wed, 04 Sep 2024 08:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725462638; x=1726067438; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UQ3BMP71Ks39+pq7NwGF6/mq64FhkUT40nnjV/3W63M=; b=WT1gr4R2XHB6dYDN2CvueI87nz9PAvAVqw8E1RThBAbu0Phioqqqvt9LTmxjSsBXUj l4GXxG5PogmM7HWnfc6xNIGrQIC50oQ2SLFGNOgNdHKLg3yxwYuWXVQ5KscEtlFPzlcv RPRy501ox0+yrfqGRkO+EmBkzNCe/lMijakc7hPsWgNnk2na/LT8+hH4l14rr4p9xILf LZN2MAxexT5Vz/NxHqO9E978sPov6KuiTU2ot8PQadBl890cD9NCzhl014SKA6EM1He3 62FBkbPhLAhqLTFyGRv06ma0Yp90ZLsk3TuKHZ6Y5o0qgoKSjujICW+943eTo2NW8ntq tVMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725462638; x=1726067438; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UQ3BMP71Ks39+pq7NwGF6/mq64FhkUT40nnjV/3W63M=; b=eRcEJg2VyN4QITrcDIe0mORJJdcOXyridqfh9V3RPtcaTAb573xnIsbV0aFny2Pqka /d1sUMpDn1j6FAYKkLr4rBPOcUR2in2KlmfawEfKPtkUPZn6/LEFCfWxTSL3Dh36jHJC osmATpOmACldVXtKFr/MVvA6UWcCQ76+ZQdY5fQGP1WX0FMp/7Ya9lb+TqYiGuO+4AWW ptG2jC1bJu/i4rtCJohY0u8BAZLURK4gSUkCzzh1bXbUVr6dv9AcfXPgp4ynESiEH+eT CZf+Ki48ix+W2ivJQ6gNWW7KG2XA2VtgIGNNtrwkYGwk1VvB8Gx5otN/6cb7bH/VIJno Cyrg== X-Forwarded-Encrypted: i=1; AJvYcCVEEnqgJNcA+73un8k6vVJmIvm98JgfK0oFgJ5E8ujrlumydgWs+GDmRwfZy+slZTh400P0G2Br@vger.kernel.org, AJvYcCXrMdZfIM+aVQBFSdh3Z2dUf+dVm1WMw0HYwOLkxQ0SY0RQ3OEqXExatT1CdMdaVJ2j/n2C0HntYFeMQb4=@vger.kernel.org X-Gm-Message-State: AOJu0YylaU4E+3wlbpOAp4wI8mVOn45amawvhOHgvrhZI2n0aSujueYI 8A/rkxE39FNa11G3QIbsc3Ke5oBV6M6zfn7wOjQ81idNVkTleW8I X-Google-Smtp-Source: AGHT+IGNbW180uwGRjrbU2cwkIfvp3Xml70BLlM3v3jsxHuHU+QXCpcu1vP2QyNeNvepeSwLUxLUGQ== X-Received: by 2002:a05:6512:b0b:b0:52e:fd84:cec0 with SMTP id 2adb3069b0e04-53546bc38cdmr13542649e87.52.1725462637915; Wed, 04 Sep 2024 08:10:37 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:2f85:317:e13:c18]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8a623a6c8bsm2956666b.146.2024.09.04.08.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 08:10:37 -0700 (PDT) From: Vasileios Amoiridis 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 3/3] net: smc91x: Make use of irq_get_trigger_type() Date: Wed, 4 Sep 2024 17:10:18 +0200 Message-Id: <20240904151018.71967-4-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240904151018.71967-1-vassilisamir@gmail.com> References: <20240904151018.71967-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org 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 Reviewed-by: Alvin Šipraga --- drivers/net/ethernet/smsc/smc91x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;