From patchwork Mon Sep 2 22:55:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 824865 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 ED81F187860; Mon, 2 Sep 2024 22:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317744; cv=none; b=f0v+UNXWr6hljtkehkvO5R6Hl/qhhFiBND9+/lwuJmN5SaSa2WglHy4yWInhjuUBQUHbW7tHDhMsvJplm/ivlDOMQAMWLBQAjXakt73HMeiA11LSVANTB8xMfR8y57G80+lkgOvwlQ1vMpGunvPZmsSKLXb62lJTBFWdp/8ChCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317744; c=relaxed/simple; bh=pYBUGJchd1hElAj2UWmVYIZx9SyIAUv5x+nT1cqtkEY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DKo7q7jvm/kzuDYlX0GKWWnWnYLHqoqA6Xf+w2lQwIgJw/9uQukWnRSTVPs0XsU1IC+GDRH+uBQlJ5wTw8DR8jqadNnyYX+4abu0yN5Y2GeIJBs5/sd4jHs/NHlKeh2vVReLFRPa6rxsIc2BgH7MCsZC0S/j7ihRWMvh/yzrcxo= 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=mhJxcwJN; arc=none smtp.client-ip=209.85.208.41 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="mhJxcwJN" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5c25f01879fso1363867a12.1; Mon, 02 Sep 2024 15:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725317741; x=1725922541; 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=jfk/MB9MXj22xilQhLGF/TlMB4MUR+y/O/4pdlAdOYI=; b=mhJxcwJNMHPnSqlZWcv4NCUfnrhgIQ30Su6XSAVL/GUTEHpYPwseV2hzLYGINd909m /3p6dLPY8O1YU/jSkiebRzt+HiI+M1aie2OlUOivnZpb6f3jk2ZcO/jy7k8Ab7rA0ZNq 8S+7jh00wXnl8L7rwM9NsAR8+lI92dRI53lzTIGTk50xji6GDdjDa8Z0YYHtkO7uCqog 64mjfcii/ClQdaTTMzjzU8ec6y037+PMaQR6YK63EVe9XDSFOtVkphG0Xm4Nl+XJenI1 6B/aR091HyKFgKymDa0KywfjgCqXnsK0gTVKK0rP++uGfagGslUH2OBnL+YyLcyGhOKi hFKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725317741; x=1725922541; 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=jfk/MB9MXj22xilQhLGF/TlMB4MUR+y/O/4pdlAdOYI=; b=DN/04ujjf72owoeLVZtRheLnzcNUwayAIlY+vJe/5XCilQ+BfsXcK1mQoFBVdjUlgY qEQEVEcJfYEyb3Gd9cETJXj/6ftjej3sWqWcP3Je3O3FfBcA02g3RGJAdGAlQHociRy4 wWP1nzBVjDdRlJOk2xAZ4kgLICX1PEi2TIaXyNMqcLFJjcB9osVLSUOB95m1foUEUL5/ blggPbAr7vgvlhztzyeb/BxYmZ/+YKalBurjR4BNuDCdhagaI/nxQ8wZwQNaIbddE6FY L8a/sSJiaZEOjin01JwkTA5W19c1LNlTgsZNchQYIMwwtlhDqEbpiEBicLSqEt7XX6pO kmNg== X-Forwarded-Encrypted: i=1; AJvYcCVF+lr8cPDsHW9TMlr9pUgTnKZE+vRKjJmqakLQsL0kmXqbudWsenKyCTRHsctbWWVBkCTOD+rD@vger.kernel.org, AJvYcCVgyOXWMKATllNmcL7TKxG3yJ+2JaQS3AmDB4JPf0nYvAXrGQa214ay//dHL246090m7lMApScp2Kk8ty4kWrg=@vger.kernel.org, AJvYcCWeRIl1kqI0PCDK2xi9cZ2+kSvyLnQwpqP56RdVcdsi/X5RynnKZzV6M/KQHDiEQjqwcmFgnbca0CL9@vger.kernel.org X-Gm-Message-State: AOJu0Yz5CBcRU3tW8K1/3YJqApew6TzQxJXrUe+5IooUCkzoNR5vXjft 1YFns4pEvsMirJc305ElJWsQBLWYtidP5KlCmvctTbRxfKLCt92z X-Google-Smtp-Source: AGHT+IF25SkxSsbO2kbhyGCDxnLoQCX4vYj5bEuTZ8TcvcUvs/vWx/woT8xGJV6bxwP3GllH69+tMw== X-Received: by 2002:a50:cc4c:0:b0:5c0:c6ab:7c0f with SMTP id 4fb4d7f45d1cf-5c242f21db4mr5673859a12.23.1725317740262; Mon, 02 Sep 2024 15:55:40 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:bc14:b544:1196:d1a]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c226c74184sm6040568a12.32.2024.09.02.15.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 15:55:39 -0700 (PDT) From: Vasileios Amoiridis To: linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, 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, arend.vanspriel@broadcom.com, kvalo@kernel.org, robh@kernel.org, saravanak@google.com, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, devicetree@vger.kernel.org, vassilisamir@gmail.com Subject: [PATCH v1 1/7] drm/i2c: tda998x: Make use of irq_get_trigger_type() Date: Tue, 3 Sep 2024 00:55:28 +0200 Message-Id: <20240902225534.130383-2-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240902225534.130383-1-vassilisamir@gmail.com> References: <20240902225534.130383-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- drivers/gpu/drm/i2c/tda998x_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) base-commit: ecc768a84f0b8e631986f9ade3118fa37852fef0 diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 2160f05bbd16..8dfcebec800e 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -1911,8 +1911,7 @@ static int tda998x_create(struct device *dev) /* init read EDID waitqueue and HDP work */ init_waitqueue_head(&priv->wq_edid); - irq_flags = - irqd_get_trigger_type(irq_get_irq_data(client->irq)); + irq_flags = irq_get_trigger_type(client->irq); priv->cec_glue.irq_flags = irq_flags; From patchwork Mon Sep 2 22:55:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 826283 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 4C294188598; Mon, 2 Sep 2024 22:55:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317745; cv=none; b=ADXn0108kCBCusTTc7TVcrbM6I8wiIZiuZN9fwD2EmLYUuWx+ZpskeHFZTZdq+d5bH0sydZMLwqQyLLqIFLbTvgCzc74o2q4EPFlbM2gB6rbiH02PVG7Ak7MuXen0SbK9BPZlMMoKNUIz330pThXqHCGf8yk/d5iv/vJfjQAsXQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317745; c=relaxed/simple; bh=QrUQcvnmZvtnPzZt8iGP4n9fjXwFPYGCz1cGar7E9G4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=K2Zk8WFYhEXWIq3hTthjF5+WaHf2d56Nk0XxrGoxHugLV+QvailVtvNz2GEtm5H/YPoST/yyoULDzo7pj49OIW8JrokZmwotgRJf1apOXH/rFPSnjowz3JsFnVR5v1z+PQky/5sLo726n2m48Ccu7z2ctBPkOouDt2ESfWaamGo= 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=ATGJWT3i; arc=none smtp.client-ip=209.85.208.50 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="ATGJWT3i" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5bf006f37daso636463a12.1; Mon, 02 Sep 2024 15:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725317742; x=1725922542; 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=ATGJWT3imxcoFo8AZb9+UuetBOqGn53S2gq1ZQXsjkOk3qIGV+XnVJ4N3ZRrHnQyKE Xebv5yJBo6LT335BexNfB3AB9bQq2z9dpXT/jR1xV3CfoFpSayG4e7cc+H7fNRxnMKQE RlOSRcBMSrUzpbf4QUBkugrs939yrsQMx/yk5ivq2y8Zo5j10T/t5SZBuaNOUO/tLIgC Ow/NngeJkDAIsuFRgDa0GFmlmVmF/roQonYMtUV8GqEe+ianoAcQQjP7CkrAKMnr5FOo SZ55qBsG3748kKUs7/V0WNBcttUFSvLCZ26CfL8AsYP9XwE6K1NuId3ix3Z/gcmJHzYd 0xpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725317742; x=1725922542; 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=lwpAzP61m9cKJKI84Z8shTBIcJkLengbvAux5dulVMFvRUUuLbYy+z33LR3gd5gPTL 9/pbQSaOUl0Z5KKkYFszuvuu20n8J0JezHiaLX6PobwruH5/SdizPQ5DztPmCSdV9se9 9js+TnFczG62C3u/en3esoXmoxiov0nGYU9kYLXHwE8/F0mE/RwrUHUNxCfsqkfkFMii iQHsKUTnI/EbqRFDpkCEClDvDGu+GOySFAfcuNQDm7EKMv6UQxQnMM6aJ+hj3I4ybQBI vE3NFen+1B/bqfwij1SKfVIk5kq/7PG50rvJKOQzE9j6V5X8WHTzZ3aDDIEhW8jT9L/Z dbkQ== X-Forwarded-Encrypted: i=1; AJvYcCVjNm8ogZwA9Ww5fw9atfoZrb1WGxIRMNiQgDtymKP0XnfontA7g5VkikqZVSDqbaaGi/v7QbPMy5+TOacVrT8=@vger.kernel.org, AJvYcCWDV1fDTvt/eArxMYmWlliGRsWSUKBBtN3xI+puvauuwFlDdsN42Oc0CrmBcMbkBhTP3ORuIt0T5fHG@vger.kernel.org, AJvYcCXFWK/Ga9aguQdFhZq+OV3jsZg+Z/OnNywSxY+SPcaUWp0B8JQLr3P9t+xi3qGSvaBGyFne6qCd@vger.kernel.org X-Gm-Message-State: AOJu0Yx4vz7ZGRL4ac5/TPWtZY25YSgBx1jgROSLc+vSNkStXwJ3l1pH a7VvJ2Z49FZHcq7bO+7l6faPwiTxhqXcRwmPCPRHGZhxizPicXe/ X-Google-Smtp-Source: AGHT+IHbdygsiHgue6jnl1jaLVDHduB6XMrVTsWjFGMYu9OGTpHCFsbA7oouOyBeUFys2QcOOAL9YA== X-Received: by 2002:a05:6402:2711:b0:5c2:6c75:4359 with SMTP id 4fb4d7f45d1cf-5c26c754480mr578287a12.9.1725317741625; Mon, 02 Sep 2024 15:55:41 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:bc14:b544:1196:d1a]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c226c74184sm6040568a12.32.2024.09.02.15.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 15:55:41 -0700 (PDT) From: Vasileios Amoiridis To: linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, 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, arend.vanspriel@broadcom.com, kvalo@kernel.org, robh@kernel.org, saravanak@google.com, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, devicetree@vger.kernel.org, vassilisamir@gmail.com Subject: [PATCH v1 2/7] net: dsa: realtek: rtl8365mb: Make use of irq_get_trigger_type() Date: Tue, 3 Sep 2024 00:55:29 +0200 Message-Id: <20240902225534.130383-3-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240902225534.130383-1-vassilisamir@gmail.com> References: <20240902225534.130383-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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 Mon Sep 2 22:55:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 824864 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 53ADA188929; Mon, 2 Sep 2024 22:55:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317747; cv=none; b=j+vttcuZN6jA6pPqWQmyAwIKuqEvv2pR55mFEjN5vdWjslYiw8/xzrRXlhFKEC/VCikkWXxPPa0ZfQsS0hL6shoOAj4jToKoIVQb89BW0zrFYClTSNq4z7+RbUCnykPSJPQ1PLabnUsRfUddE0J1gOTdEJyrJaYTuifVe9S81Dc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317747; c=relaxed/simple; bh=fSzJPU8bmjY5Ro+DB3zswx5GV+Kvbzad2TRXw4i/y84=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tkZdouUEwBPm60PCXC6VVpnw8UmXdF/80Zh9zyy09UYR+Yrl0aIOu+GLRprzX364I/sX9sG/wJBsZNTN/yUFWE/A6angS9MJH8Yrc/qVbZulA+rxNkX7/eHO/uxWzZRpzkid3CfDIJKi7UvnTsUfPuUtXu/YmczFPBUzbPGVMoE= 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=c04XdeDf; arc=none smtp.client-ip=209.85.208.41 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="c04XdeDf" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5c26815e174so992123a12.0; Mon, 02 Sep 2024 15:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725317743; x=1725922543; 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=QMRQxsu6IuAS6frrvyS8c4hkmHHGDuOUXHIGD8sRn2E=; b=c04XdeDf0XFMavJl+ib6IesQ7Gm/VsQ3xwtA6sKxd4ra+g9WE3D1wp+WbmU0Nj9GFV LmGwpGcQWjgZ25a4zknmuuDmmaRHSweW2HXVM84pgPSkAGDUrc1+T1+l7yq6TtueDIUE Cfm9gQjn3UZ90HIIm/QyqoGWVArXvFx559XuWl0xmGASaWUDK2Obi1hYlyB09EphsO4e knI/EqPr6MywfbkaBRuvJ/2CFIJC6P+9ob1BIa6DzsLlkbzHfnMlyxQMioFqPJoF1elg 5H7gY/pCqfiNJehWNBPqa46FEbHqi/S0r5Mty7D0WZmnf/tnT3nc2bHKIQcQku3nY1Du 1exg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725317743; x=1725922543; 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=QMRQxsu6IuAS6frrvyS8c4hkmHHGDuOUXHIGD8sRn2E=; b=DvsdYjk8n4d1Ipz4FX5BEUOw8woPgG0B0uCqi3LJBptp9NjrM9c1Hu6MVFJAnoHbo7 EtkdN6L/WuYDKvxPCQ3ZLVrfTxky2Rdw1JGNe3zXBK0TeqdbHFcRIAH99JuYDup+j/ds AbpC9vWm1tyX/IqcUcuQDXyxXBzpxchWERaorrWVi1EEtEXHfMFjpnOOKQ33qpTmdAkJ h/O3gYEqhp7HkyTAEykJ9zI/Sp2LZVZBeDTUWCE4Dy47xClaLhSBFkf97eeB/smpeEHF 8CMHf/GRO9iI2KxDILVL4PkQTLkg6nkpMAqcS+UM7o+xjiD70+mVeMzlwwzX31fFZAda RA0Q== X-Forwarded-Encrypted: i=1; AJvYcCUCLCLJslznLgH63VKhG+xVy7JWBQbnoNzzJ02TYAw2EFHNAnBfL9x4uUJu3bA3PMmTlDbdhUO2OO2a@vger.kernel.org, AJvYcCW1hPm2cn96CuRBUFN4uC8UxzlwJZ/Ok59ELUYUnwvZREji8FMgVbhmz2GpxUJB58bFs7wwubzz@vger.kernel.org, AJvYcCXql/sqj2LXvDdYMpMBYy3dHEikN2nIA961gxTCecY2rZoizt3E2N2B4IeR0aQuqBiU0fY6wT/cE0IIjU5TYZ0=@vger.kernel.org X-Gm-Message-State: AOJu0YzJ5/sCK1o0qvwbJwcUbZW2K9ep0gUTBhvLmateFanHQQiOYtJW 1fCmMxIXYqgPEBfsAhBrmqTlbMccp7eFFpxMw6+jGwsJX9DpeHYd X-Google-Smtp-Source: AGHT+IGpOoiKZ1FObkw+EeG22X+GUgUsivRxsCpbNjjmSCMOZtMUSBCFQPPTD6c5DMOsUOlzrB7Ojw== X-Received: by 2002:a05:6402:40c5:b0:5c2:5cf7:a615 with SMTP id 4fb4d7f45d1cf-5c25cf7a653mr2982329a12.5.1725317742949; Mon, 02 Sep 2024 15:55:42 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:bc14:b544:1196:d1a]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c226c74184sm6040568a12.32.2024.09.02.15.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 15:55:42 -0700 (PDT) From: Vasileios Amoiridis To: linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, 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, arend.vanspriel@broadcom.com, kvalo@kernel.org, robh@kernel.org, saravanak@google.com, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, devicetree@vger.kernel.org, vassilisamir@gmail.com Subject: [PATCH v1 3/7] net: dsa: realtek: rtl8366rb: Make use of irq_get_trigger_type() Date: Tue, 3 Sep 2024 00:55:30 +0200 Message-Id: <20240902225534.130383-4-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240902225534.130383-1-vassilisamir@gmail.com> References: <20240902225534.130383-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reviewed-by: Linus Walleij --- 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 9e821b42e5f3..e49cfdfb85cb 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 Mon Sep 2 22:55:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 826282 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 CD156189532; Mon, 2 Sep 2024 22:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317749; cv=none; b=kK37dlObRA+RgZSbZ7UvaI8Z0/sX2WK0H6My/DBVrRBnGP827Oy6yuWDvk2X9Z3JKipOYW+1isF6Rumo1eXXo/HQrxZf2Ns9hokw+e+85xH7WPTNEfigm9/VHHvCc+Yc7UWCYyfthoMY7e62AFaaTFh/nOj56dQVPBXqs6s+ZL8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317749; c=relaxed/simple; bh=PdsMdAs4i+1KnGUSIyj6Cvkto8ku+RF2Yz6vhnepAIY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dQW3CGXT1JLnLL/twhsaVGQjDpv2oF34OaKNiSfq2jfzmlwWlMo32znk6MJucRF2MTB8aWjWNzXOa7SIgX6wC+Lw0FRp+lkrRxWZJp3hsVkuH84lK4hP6NXQF7T2llwfUc4FR54PIi2lJQmzmLUknKayBsIFEjqllgjw4AAR91o= 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=kX9qg+ZK; arc=none smtp.client-ip=209.85.208.44 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="kX9qg+ZK" Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-5c245c62362so2163742a12.0; Mon, 02 Sep 2024 15:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725317745; x=1725922545; 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=kX9qg+ZK/SVlb/Be/b7NCc7rl9fwmos6Uzzjmw9u2BM62/m1jEVW5826FOTnALmUHE IRLi4nKocwG5wEVZ78nJ6cE3gP5Ufz2cx8wwXw+Kws1ehx92/Aar7aEGVa40B8mZepSc udkYmSsrrLfEhDTn5LRCJNzkjKyJg+rrY15H0DMJQ/WVeGFbLvQ/bfpaT1rfQcIrR9bb ftQfVzPF75i47R1+aVGQMdvUZxLL4leEQfEDUlnHco0W6dNWLJChil+LUaXGFOIX0fQ0 3Jv+HYvUnx1CMI25TRwJ6XviiPon+Prj8OfiQLiHpyKXwOcJzKwOUiRHLnz4Bo/+Qxop hjwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725317745; x=1725922545; 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=sx4YaJvApc6IshZrwxawTb+N1Lxic/eMYq5rE0eUcBK04P2DvWhCco08zo58NMlzgo 2/IxoQYBE3VwChT8BjRUlQH9KEq98eVDZ6R0EgA2TlEdV/7a7OVm0vFR2/zn4nJBUplD /KoR/Xk/NemwGpfw5aw9c9XHNNxjxGeH0HV3OFjOEl+C3tEcUnhV1/7IOUmRs/P2yJhc dWX4f4yWe+VHFHmY8Ftp9JPJTQ0NjD5dKgVfQlC3gr4todgegFyYNRaFSTslWhD+RowL G1e/P/zzjs+P1RPtr4A1a/epInij3CEV4QFQPed/bAzlO+JZubQtrwx3IAtKMco0nNDi Rm3Q== X-Forwarded-Encrypted: i=1; AJvYcCUT+FvvL/kCq01jJs+3nPDSOBumcwkDwS9XCYnJgkrp8acAYjhqwPZIsH2MlGXr5pyKauvyJewnzVQuG6i+3QA=@vger.kernel.org, AJvYcCW5gVpafQ4Z1LvUXnkuC7O89vxZMhbmiHQDtagwzmssm3smrS90oPu7Tky9GBXd7hydsQYMEvxG@vger.kernel.org, AJvYcCWJbeG3DmnX6hIdcyKzQFsTSso8EyXLBL9tBTBKpZz4U6kRKwqvWtu4IA2okp1RBIvQ3vSG1LQRiWlC@vger.kernel.org X-Gm-Message-State: AOJu0Yyu2UnQ1ALmGcrEq9NxHX5+9nCXhNu4vAGYcDSWDRDYWOYl6Yfp iiJkexUXQt9e1Dph7+aWyetNfJwAspfpEqN2lusN+h0FKy+tQJDB X-Google-Smtp-Source: AGHT+IEf92UBwMibwLg2cnnlzn7tvqyZvwNE4RFPFPHR7sCqtNSQ5vwBs/tIcPGYoQk/X7Gw5PHdpg== X-Received: by 2002:a05:6402:5249:b0:5c2:4c8a:a8ba with SMTP id 4fb4d7f45d1cf-5c24c8aac1amr5260276a12.8.1725317744621; Mon, 02 Sep 2024 15:55:44 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:bc14:b544:1196:d1a]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c226c74184sm6040568a12.32.2024.09.02.15.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 15:55:44 -0700 (PDT) From: Vasileios Amoiridis To: linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, 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, arend.vanspriel@broadcom.com, kvalo@kernel.org, robh@kernel.org, saravanak@google.com, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, devicetree@vger.kernel.org, vassilisamir@gmail.com Subject: [PATCH v1 4/7] net: smc91x: Make use of irq_get_trigger_type() Date: Tue, 3 Sep 2024 00:55:31 +0200 Message-Id: <20240902225534.130383-5-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240902225534.130383-1-vassilisamir@gmail.com> References: <20240902225534.130383-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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; From patchwork Mon Sep 2 22:55:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 824863 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 A61F518990B; Mon, 2 Sep 2024 22:55:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317750; cv=none; b=TP9o16NP6IRDwaQ5e3MepVrZICC1TBNOnqK0uxBaYdKSnq9EME2apsrSPNIDGyCcKWknTzwm749M37p+MAtPFa0RH7RcXAB80xzsWeQLIdqAPgGwJXe/q7fYObMheXiI/SyWNePa3X/C4Szuabkfsg8Sul62VsIWidZyKWFCQqc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317750; c=relaxed/simple; bh=uOyPjGt0jQt2rh9a/QIkYjsMGeW+O2UMFkZJfXzINs0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NZcoNIqkUbqQe2JuJz6R0PtY/d/wA8N9NI5Ta/c7tOowOGVtkmXEt3x9tP2IW6UTHTGYOy6Ol6FfdiaFAAZ6OPIfbT9CkhbzeBGOqwkGP1p0063Ujtdk32XgtiFTGB3kQ4HH2qnY9XvRNUqgOhdqxUyxn/rMzJY3PnWtc+3fKOQ= 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=QJQaNTVy; arc=none smtp.client-ip=209.85.208.53 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="QJQaNTVy" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5bf006f37daso636523a12.1; Mon, 02 Sep 2024 15:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725317747; x=1725922547; 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=ZNOha94p1Pn6xGxE05olLPJMp0FKiE02MSaHBlDjyGc=; b=QJQaNTVyH7G9rwftHNX4JhY4q97aPbcXY7zw4UkrO2nA2OfMNKw3WMR06UnlNAriyJ 7mIHXDRFdDFMjzjl9lOmZM9R0SCFSDC4GfCIwysb5fd9z/K6ijSpCn9JFBL1IfuExJ0Q vI5tCLXx9xQtHneBbXSBH53TU+F6CwdjUo9WKEjPSpRP2gCG7N3drLmBybHKo80aKtaS yCUUNEo7LCZOEnVjw3G6YkLArV91Qo0z18NF7YW4nghXulsiiNq2MgUkFAudKSgzstZc Jy4vWGVhZIeEaKJIqP3U3P4m2II/IqyCteyPgodFiaeyEDvQibHh5Ocu6F7P7ZaFSqt1 Itmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725317747; x=1725922547; 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=ZNOha94p1Pn6xGxE05olLPJMp0FKiE02MSaHBlDjyGc=; b=J1gjSlRIrASg8qZ9kvEeg5PN9XlM43d/PiUxNYDJ7WF5r8XqFBVNFR3kShTvaK4ff0 rcR0Fh7iYDrl33ZAEthGdBIGWPXva21MYXDQLuJsYEZ1FGqWwAqhgk1XJVx4WtDQOLJm FcS5J1iuZCiotk4r0iqbDMd59iHCnxSnjPyXyUkBC0GB1nDr+7WHFMZHofdcqv6DjFuD hKa+3ZrR0ioOmxtB5csFJYgF51rD8xLXswrbZTEukHMXOINN8fRuTvgTAInh77gOuOjX zWsAlOvyt3vKxSm9Zrcoe/a3kKYUYJdPJmWFu1etOgssDu6IV3ATpIcS6/W+jksLI0qM k4gQ== X-Forwarded-Encrypted: i=1; AJvYcCUM0rd0/ytxiqKfO1zkJFJ6/do5DC2iYJIlGf1GLOm+KoVcTKC/BGcyysfB73pS3f92W7YFRqsxAu6IWwmBhf8=@vger.kernel.org, AJvYcCWOCXrS/XjjQ4jtPFAhqT8DpQoKNlkt0lmF9ftMZONV/JUxIr8SXOXKKp6qJlPOkVkvgQ7xQj+v3DDO@vger.kernel.org, AJvYcCWVArHJKSsp/kbW+95Y2SS8kQP6MioUBk5PixiuoA+1CcMI6eEdoGHRQHuzytKvOKDvjWik4WjI@vger.kernel.org X-Gm-Message-State: AOJu0YwUiOJtVcj+G5yAwNvnI3Z/VS1RkPMMzAUW/SZE5KWruVAHqjoh U0yuFe0RNxrAJVbAaxnK0k4OwWPJIO0Ss1+4tU0AK3eQyxAdYRQE X-Google-Smtp-Source: AGHT+IGqqJa6E9Fi04lpv5ylXuWwG4McM9U+cVel0dkTj5wzsYa/5sxRsZvHI2+j+UqV622HmJH7xQ== X-Received: by 2002:a05:6402:270b:b0:5c2:5f31:8888 with SMTP id 4fb4d7f45d1cf-5c25f318b71mr2775796a12.15.1725317746338; Mon, 02 Sep 2024 15:55:46 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:bc14:b544:1196:d1a]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c226c74184sm6040568a12.32.2024.09.02.15.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 15:55:45 -0700 (PDT) From: Vasileios Amoiridis To: linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, 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, arend.vanspriel@broadcom.com, kvalo@kernel.org, robh@kernel.org, saravanak@google.com, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, devicetree@vger.kernel.org, vassilisamir@gmail.com Subject: [PATCH v1 5/7] wifi: brcmfmac: of: Make use of irq_get_trigger_type() Date: Tue, 3 Sep 2024 00:55:32 +0200 Message-Id: <20240902225534.130383-6-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240902225534.130383-1-vassilisamir@gmail.com> References: <20240902225534.130383-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(). Signed-off-by: Vasileios Amoiridis --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index fe4f65756105..e2611f164fa8 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c @@ -138,7 +138,7 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, brcmf_err("interrupt could not be mapped\n"); return; } - irqf = irqd_get_trigger_type(irq_get_irq_data(irq)); + irqf = irq_get_trigger_type(irq); sdio->oob_irq_supported = true; sdio->oob_irq_nr = irq; From patchwork Mon Sep 2 22:55:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 826281 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.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 5D8FD18BB9F; Mon, 2 Sep 2024 22:55:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317752; cv=none; b=tdg7tZRUyu8c25Rhm/CCXzF1CKekrvgKLvA2J3bwtgtSWWbOSiVuhla9v7wO7Bpi5eg01g8Bp1XI6GAl25porwtbsgQWLT3z2FDxJK7aFMxtYs8Hr5NEjILjqv2nbp6jgGkD9pb/EfTX4AOk1xZ6rQeSMqTNKnwNxKIbf7+9GEc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317752; c=relaxed/simple; bh=XPXzxmxPuh0oRaEz8t/+d+iASKVe9XfXqjCyTenSPXU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OWTxhClp0bD6oo5/nK1SuPZ9ZALWlV0sPo1VL562eJOVNpZqmIrMAmER1kOAk+TTQ6WIVg7ZMX6zbNcuLEXgKghTHl8cvh1xv2NsW3qeI+chRQEqaA7SyNSmnRUIcURM4MBx7zuHUwyZbs9RW1TzTGIr/WKBxRUUcWKkWgc0xe8= 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=aI3mqUs2; arc=none smtp.client-ip=209.85.208.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="aI3mqUs2" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5c23f0a9699so2587751a12.1; Mon, 02 Sep 2024 15:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725317749; x=1725922549; 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=kBEQBp9g3k9SiXOvyYlcXlhKd3Urb0xWdAtZQorxYxM=; b=aI3mqUs2uQFjr5CbR+3EM/ABltFR7vNZk5qkiFfIDFRlXSzqXBMY+1kMS89a0HoOu8 IZGFNDWVHkeMSKv8TgROsYSQA7B+jEP763NpHV8M6+xgByAKuISxi54JTpOexE/AkFtL k9dPyNUdcBsFqKBPSqYSflJUJIMcl7SAoiaPD8jIrQC6TqPu29ECfZ3828M4fI1m5qqG I8TGGRdfRx62b5X+RW6ipU6qF6jptkXNJDOTfEyFKci0dmt9Zm+ZLiFPWKsiXbxNLPIE rhyWN7Kq7gLyhTL9Fp8znPYQrfUzbObYzOWMbvxdz33reSRCjwQaW2aWW0VGT+Gk3x8j 6LQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725317749; x=1725922549; 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=kBEQBp9g3k9SiXOvyYlcXlhKd3Urb0xWdAtZQorxYxM=; b=W/VYWukpN0JIbxMWv4Gyi45zeR7R7//GQ+z/zdiwvNUfMFz26laT1GjJ9WN0d9h6Fm AHu2bCJ3NXcsS0SELAcweYVEgMSaLBef8aPVQtEQIHNR9hleyr2zTRoXAYYt0cwCR8Kq 2N+tbY+I/LLso44AD7eXFzyLlFy3A8fSl5KQefjT8ZV1rzuK9tmHjqsiVQMW2imTxwLP uJdBGytbhaE6tc5gke+6wg4CY7ezH7/+Lvxr2Ma9etTHFraa5q/LqLcS0VxToiH4IaMp 6nsfmkn4dzYUsNNOPFSwGPgBPxm/DLiPJH/l9xV9/dp/x9ndht3G42jRml8wk7auIl9L jNJQ== X-Forwarded-Encrypted: i=1; AJvYcCVK4niEW89nnIdFXV8AnT3TDNoHqCYM1r+OJ8bauN3Ez84wVwEEjCRt1eaHJ0xlhnOOHVB2qIOg+pE/@vger.kernel.org, AJvYcCVzLbQGLRI3ZaaAB7K+2wk38+UQ4DKY/yMW2Ytci+UYXPLGAhHUgMSEN4Du1H5BbgmYjRpHvl3y@vger.kernel.org, AJvYcCW7//KPh8+OXQIDQPVLB2bMQDiSiTxlAgPLjjt0vM3TwHsH3BOMkT7iA1PfwAsjjE8T1LRr55nn2oNUssExNGM=@vger.kernel.org X-Gm-Message-State: AOJu0YwK+dVKSsb/D91qjuaF3/O+krFi5nGq/Ejaw04aJBntB51rLHSW YQj5FO2Bfqiqf6cHdz+lLDCXFmUcsCWAO5vqdxNi2zIiMmtWbGU/ X-Google-Smtp-Source: AGHT+IFGC5whsYTLJRRo+OjnE/CnzW9ioCA7rs9/xXHxQe/SonC3TILzstrZixS3NMZMqFGr2Uhr7Q== X-Received: by 2002:a05:6402:27d1:b0:5be:ea9c:5fe7 with SMTP id 4fb4d7f45d1cf-5c21ed40982mr11174299a12.16.1725317747871; Mon, 02 Sep 2024 15:55:47 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:bc14:b544:1196:d1a]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c226c74184sm6040568a12.32.2024.09.02.15.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 15:55:47 -0700 (PDT) From: Vasileios Amoiridis To: linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, 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, arend.vanspriel@broadcom.com, kvalo@kernel.org, robh@kernel.org, saravanak@google.com, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, devicetree@vger.kernel.org, vassilisamir@gmail.com Subject: [PATCH v1 6/7] wifi: wlcore: sdio: Make use of irq_get_trigger_type() Date: Tue, 3 Sep 2024 00:55:33 +0200 Message-Id: <20240902225534.130383-7-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240902225534.130383-1-vassilisamir@gmail.com> References: <20240902225534.130383-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- drivers/net/wireless/ti/wlcore/sdio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c index 92fb5b8dcdae..9e1b644beba9 100644 --- a/drivers/net/wireless/ti/wlcore/sdio.c +++ b/drivers/net/wireless/ti/wlcore/sdio.c @@ -324,15 +324,13 @@ static int wl1271_probe(struct sdio_func *func, memset(res, 0x00, sizeof(res)); res[0].start = irq; - res[0].flags = IORESOURCE_IRQ | - irqd_get_trigger_type(irq_get_irq_data(irq)); + res[0].flags = IORESOURCE_IRQ | irq_get_trigger_type(irq); res[0].name = "irq"; if (wakeirq > 0) { res[1].start = wakeirq; - res[1].flags = IORESOURCE_IRQ | - irqd_get_trigger_type(irq_get_irq_data(wakeirq)); + res[1].flags = IORESOURCE_IRQ | irq_get_trigger_type(wakeirq); res[1].name = "wakeirq"; num_irqs = 2; } else { From patchwork Mon Sep 2 22:55:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 824862 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 3AFFC18DF98; Mon, 2 Sep 2024 22:55:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317754; cv=none; b=hHwObfEhteNz3bmLRDwslVBcQtS3taM8mlmbsnq9UtjxNxtXUNXIMFTfK/Ly4+M0qTT3tVBdBjzGiNmeTPQqzqvVA0aNMWt9GhtbW6nf5S2vMJGrnl53i6sfPZVCzaGVHUxB0UNMYEO5RUzbXx4fYsNCgZiXVYa0lI/iBl2znbA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725317754; c=relaxed/simple; bh=aG0ldiriHfw927e+9EU0XgBJ1LEe6dToHI6YishVZBI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OqQNf5Y+tYXEH061Qd0eW3MrtXl7hXIpXTnEFHC4YNc8bBLWYeY1usBVAwYyi+iufQxCe/wU4ocvAmB4hL9P4at7ZY+NpdOqKjgnxb01wEK7kPybkoaEa+wz4EYJVrwgjIzyS6L90ozlqvMLg9YB4oKR4oFZ36Vdy1wuMXYe9zs= 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=UxJ2Tn/N; arc=none smtp.client-ip=209.85.208.46 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="UxJ2Tn/N" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5bf01bdaff0so4327290a12.3; Mon, 02 Sep 2024 15:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725317750; x=1725922550; 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=3M3zrQ4HRuBwzDNVnr3UQEv7suH9Jl1q9Q4EWJeNzEg=; b=UxJ2Tn/NwAB+5WxThqF1mRJ9kfoMMK1IrBlRTio4GEu6t2o3GL1Fy8EkZnmMbWZTrM QOUI1azePvQZ3sfReS2Lh3a3OlLjQzE8EddtCqxO6k0pPocDuc/rH+Ou/QbtCabEkz0p AdCKJH+tvoYK1yLsypTzgz/JFBehMkefjHa0szPY5trD/tXY2z1UNWcTeT+4/tNtkK5C Rr9EYSVh4I/Pm/Qb4sVHUN0scoUnVAAFrXNdIRP95bfpaJhfTVa58gql3HhhrLMG30eE pX2KRh5tbsVVEeEnD2906tPBuOalBnYwgF8pTum8greDVnHUe9CILUW3e0pAVECfPJws LorA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725317750; x=1725922550; 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=3M3zrQ4HRuBwzDNVnr3UQEv7suH9Jl1q9Q4EWJeNzEg=; b=HmVYVaER1CTdXQnSnAzBaWoIWJpZ28biqd8KU7ij6BYGtdbNzL487zy652jBPYWo/Q UJxzQSt8EULwznhl3tKnQsJ1vVJSXbmZD2Kmsjwb3pLad/fnNAeXceOCQ1NNYqzXXZqJ YQebV95euQjRJrXMy7cNlfgdka0eABfSD4+c5NQZ0svAGN3RBtUEnb+LWXgcPNzbFI5q +kR+EmBTfoMbHY/McpZ3bYuzugefcAX6aJSiVV/kDCucVY3KF8hVRIwDYPkL1b+vGHL5 hV36ffso2jz93uampb2LGt9oEGqSrMzpE+f8d+61gvg8C3/cAwbqjoFbl03MfbrX0/ug 32iA== X-Forwarded-Encrypted: i=1; AJvYcCUrS618NvNKUNCP/V6CmZPWwlyATFJUKb0KA8a0CxFRnPR2FZuhBiGxnz1lu1xnNbDO4PLWcGVh4CR6lrborrU=@vger.kernel.org, AJvYcCWVW/NWetxyHQS7vyYyFr6JpYAAkecEFqwuy+XeA7li93uqQHyEiSTZW0bMcbuVSTOSaocehMMk2a+u@vger.kernel.org, AJvYcCXj9cwOW2GRhnlfemlLP+Ger3TjFGTYvZ0dyf6w/IFtyNixVx5pkznGEXJxpK2LSJF9aOt6jF8R@vger.kernel.org X-Gm-Message-State: AOJu0YyA651ZGdVOxmwaZ8E4HuJN+gwKACdIzKq0NksXLX9RJoJZigIa L9uP9cJcdFlVepp0790+THi69lg5tVPc83jMVkbNNOwxGW/lnmSA X-Google-Smtp-Source: AGHT+IH90LXc7EwUasb8l0337BP8vUcyXOMkNHmERTlLixA2VuUgFhtFY6H5/0/XcuBxznM4NJTdXg== X-Received: by 2002:a05:6402:5107:b0:5c2:4740:93ec with SMTP id 4fb4d7f45d1cf-5c247409981mr4161897a12.9.1725317749721; Mon, 02 Sep 2024 15:55:49 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:bc14:b544:1196:d1a]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c226c74184sm6040568a12.32.2024.09.02.15.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 15:55:49 -0700 (PDT) From: Vasileios Amoiridis To: linux@armlinux.org.uk, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, 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, arend.vanspriel@broadcom.com, kvalo@kernel.org, robh@kernel.org, saravanak@google.com, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, devicetree@vger.kernel.org, vassilisamir@gmail.com Subject: [PATCH v1 7/7] of/irq: Make use of irq_get_trigger_type() Date: Tue, 3 Sep 2024 00:55:34 +0200 Message-Id: <20240902225534.130383-8-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240902225534.130383-1-vassilisamir@gmail.com> References: <20240902225534.130383-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: Krzysztof Kozlowski --- drivers/of/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 36351ad6115e..5d27b20634d3 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -430,7 +430,7 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r) &name); r->start = r->end = irq; - r->flags = IORESOURCE_IRQ | irqd_get_trigger_type(irq_get_irq_data(irq)); + r->flags = IORESOURCE_IRQ | irq_get_trigger_type(irq); r->name = name ? name : of_node_full_name(dev); }