From patchwork Wed Sep 4 15:49:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 825603 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 5BFC31DA63A; Wed, 4 Sep 2024 15:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725464970; cv=none; b=ostF4OVe8Y7+DDLaV7DtWfD0JmmPy6TS6NrMZ/uf5GCmnprKSW0czaOSrCFt2TvFE6EXWN+0rPi1Q7s+81gSoq6TONPFjcmIvM2rnNcfH25rbgtYX3Gaz1STn/9QYhdtTDVznZW07qJbkgHMPxzTAWJ7c5nlMfvY/RkyFu/ySt4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725464970; c=relaxed/simple; bh=uOyPjGt0jQt2rh9a/QIkYjsMGeW+O2UMFkZJfXzINs0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bXi6hLY8e4+8D2hZQD1HzMCugz9kRVRw+Z1hZUVctXnZXHysO/hj7TT1Kwo+3Lzwkb+R2W05EZdtGsyotMSMq6vT2fc+n3L4liM46aXxUSwqGI+m2gDb8K+zskEHevBBtfJxbXnjxX8PGKPdCtPw0CL9dMHLomMAQ29dCjh3JNU= 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=IEhk6MZQ; arc=none smtp.client-ip=209.85.218.49 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="IEhk6MZQ" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a8695cc91c8so701458366b.3; Wed, 04 Sep 2024 08:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725464967; x=1726069767; 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=IEhk6MZQvJ+WFthuNcylPVNq/d5miFzn6NDkt+KnwGrGGtkScvaMSjHjWzhjyCfJTj wKRMi4kdq9neF073EHLw2Aw5gLU2eUSm/13Xf7DeI3owmUNtoHtd6+VEGgCzadrpwhV/ 86AkNWdomjxML450pq+vAYmWIIo4Z9F/QnIkpz6hWmyYeouW8LJU2EigUvYmQQyKDPQE OX/9kxtZ5ZqgwMK355IIMHQ4lI9RfaaEV9ws+d9NiSJnbXAZ57TqUkIEwADEZ2MQkmxT bJ5zSN3wOuVP6kioVbaXnZgzjj+jUKo2SEM+GCwZiwSrjaJEgvPFbDKPzNBAXx7nMFab f76Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725464967; x=1726069767; 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=R2f+3TmDnYRx/14wIN/nF9hBC2x5ZNJ91DBtHrO05/VbjVN7S77s/T9ifVrB64+Bb/ I34LnbFyJmwEdMqyU8tWDmQ4OYK6YHtWykUy8CVS38uGOGne1+FHbdFaN1mTLrgFeAj3 np2Ghdm/fzYuSHYXv/Woam5RZNIHyr5B/wdXi/dbPey1VOKjTVFNSC/tCGYJ5zJWX2XI 5+n1xh6Z7vvG4LRIFZCWwCeKgcVLOlwPsCgTbMtRL3Kcr27QTTr/QgQp82BK+UhAfdxc mM6WaPyN7f5Ls470r4orjpn2rzTqEZk/7ubT2SLv9ZO19PYjybKzd+OmRXs5kGQG1en0 xHdQ== X-Forwarded-Encrypted: i=1; AJvYcCU6iC8qhOU08B9z4l5E0KTRcbg0TYgXLr7R5aqz26itBG7Zc5ZK1QE7vgM4Qg7TJnrB6EBxUFYp2SI+5MQ=@vger.kernel.org, AJvYcCWabSDRSrkRgEcKHywbm0r3LUqN7DgV5aQVCUby1K9z4BJPSoZgKOmpsyY1yJedLJprOxg4Jb2LcN5TpJc26wk=@vger.kernel.org X-Gm-Message-State: AOJu0Yx5thZsKcAV9UTIKTzzaMzHo9sSn+VljA0bTZuca19apRjYs56o tC4sqQU97Ho/nkoGVJGKqRTAatjSRWNaqI4lRPJDSYyjY0oKyNUY X-Google-Smtp-Source: AGHT+IF+lxhGwhoMZYoepfp3gDH24Pru7uRsX8Up7mCHlBWZAoA5jp5kJqxxNCQetwbSZCOVjPziUA== X-Received: by 2002:a17:907:3d87:b0:a7a:ab8a:38a with SMTP id a640c23a62f3a-a897f8614c4mr1423708966b.27.1725464966572; Wed, 04 Sep 2024 08:49:26 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:2f85:317:e13:c18]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8a62038c0asm7825566b.62.2024.09.04.08.49.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 08:49:25 -0700 (PDT) From: Vasileios Amoiridis To: arend.vanspriel@broadcom.com, kvalo@kernel.org Cc: knaerzche@gmail.com, leitao@debian.org, linus.walleij@linaro.org, javierm@redhat.com, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, linux-kernel@vger.kernel.org, Vasileios Amoiridis Subject: [PATCH wireless-next v2 1/3] wifi: brcmfmac: of: Make use of irq_get_trigger_type() Date: Wed, 4 Sep 2024 17:49:17 +0200 Message-Id: <20240904154919.118513-2-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240904154919.118513-1-vassilisamir@gmail.com> References: <20240904154919.118513-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 Wed Sep 4 15:49:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 826267 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.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 5D0771DFE2E; Wed, 4 Sep 2024 15:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725464972; cv=none; b=sEDmQ9jImkSLkBQRogYkMKZtdFXTG52HZkGUDtbe9MctNwuT388+/LkhTmOyqWRx8tJjfwJjdDa03CV5n++krO9uaGP6QLh9p68rbV3NJ3bm39SBDsojgClUzylsX+Iw9Mw2Mp5/dsPisZrns2fp7C0RK/GGclRS2oicECrHy7w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725464972; c=relaxed/simple; bh=XPXzxmxPuh0oRaEz8t/+d+iASKVe9XfXqjCyTenSPXU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sZ3CLHjFEbwzC1sU+xtMb6YEwe9W5b0JBKXV4da5Q+GrvSfF++8+92wKkDXHdN8XszVoLUTjewXQkfHe9G8tSMm0TbunnUTNsTKp1t/ROrZVE1y42L5rjc2VaZGnpCLvwnnaad0bF6VFZJkPAkKoH/QznAL2D/2HIWvkfKyZxhc= 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=DZQ2FtG8; arc=none smtp.client-ip=209.85.218.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="DZQ2FtG8" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a869f6ce2b9so736100466b.2; Wed, 04 Sep 2024 08:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725464969; x=1726069769; 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=DZQ2FtG8MFQKjNWYFEQv1ZQ9/wsshkbFn7SLkuqOVrmSUedQPd7HpJeFHG+r0cqygw 8EK8eM7iWj+DMd87B4rR1o4Rx1HfGF9JiSHifLNtz0PHLMiSbrPSd+LLpF81RGmBD8Xv DmBQr7Nb0M9Hf9rDClcAMLpDkQASObzY7QwshaRNijFMtYerAxyjbrC/imI+u1NXgiar fBCDYTFoLxGUND+ALVdjLbfIvVTTkBT2lIYxycz+K3ZV73vJlPWvDNSlFRdxJRJWFbr6 uQ7+8FqYa1mHTua4brdDL0bNYMilOYxL1URU/V2PjYOEJfSGBUPt11oe4mvlY/o/1exC FrKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725464969; x=1726069769; 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=L+pokHweIRkOxlkyxhnImn27+NbOrjTWjy8dzzD+hEL4fFsi071x8Z+BFiGRFtsGNJ OOC/SxJ7WIfOFfal8jxF8U/hh+A71YDCQ71O+8qpgBvt8tK5+oayK7xKcHvUhLmftZ/L Q+TUU4qMsMF67KT9s6dTwMqCBat6s5pdUFsv39n2FWfERBhRhOGw/5Nk845Tev1XJVVF 2MnSOjWfFoQv7thsrHfPFE3XDt+HjhhQAQztn3OO9KE/1RpHyz0sioUEdhB6qPBo0nh9 FUy6wDbUTmhRqoNHY7X8OjKRV96FlKYsdumOor6XPRMKbai+cjG44tDWKlFyiTTnAxWH W4wg== X-Forwarded-Encrypted: i=1; AJvYcCWEMSFvyEuej0XVPbJ7P+JvSMBsGquyrQGYKXeNLDO7wRleXNA93qb9xVSmhXPAlL7FhzHbNbDONqOFRvlWP5A=@vger.kernel.org, AJvYcCWOQCOo0sj0nJt6uvCwJdDl6OIgZE/kJmsqYAln3n54tQZF5MSRE94EJbJ/v5ou6ZU2Ai79Er6LGqNtV+A=@vger.kernel.org X-Gm-Message-State: AOJu0YzfSIyuPoaJZY3vSpWJxB1PckLn16pR7AgUiDHaJkq4eDiFRq+V Rqc9QVlJMYpvj80I0tKnbe58YeiEdIiOP/pFrlX6PL6OZywh8xeM X-Google-Smtp-Source: AGHT+IEdYRPw8lVb/idDkI5zThZomh9D+3QQoM1QCPI8EglGvkLtHPnmv3rRaWQPScsdO6vXDp4SVg== X-Received: by 2002:a17:906:c102:b0:a86:92fa:cd1d with SMTP id a640c23a62f3a-a8a32f9f1c7mr393319766b.49.1725464967741; Wed, 04 Sep 2024 08:49:27 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:2f85:317:e13:c18]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8a62038c0asm7825566b.62.2024.09.04.08.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 08:49:27 -0700 (PDT) From: Vasileios Amoiridis To: arend.vanspriel@broadcom.com, kvalo@kernel.org Cc: knaerzche@gmail.com, leitao@debian.org, linus.walleij@linaro.org, javierm@redhat.com, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, linux-kernel@vger.kernel.org, Vasileios Amoiridis Subject: [PATCH wireless-next v2 2/3] wifi: wlcore: sdio: Make use of irq_get_trigger_type() Date: Wed, 4 Sep 2024 17:49:18 +0200 Message-Id: <20240904154919.118513-3-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240904154919.118513-1-vassilisamir@gmail.com> References: <20240904154919.118513-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: Sabeeh Khan Tested-by: Sabeeh Khan --- 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 Wed Sep 4 15:49:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasileios Amoiridis X-Patchwork-Id: 825602 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.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 BD0741DFE1F; Wed, 4 Sep 2024 15:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725464972; cv=none; b=XBEQUVuET06jwjBI3TxvauTT4MoVwtZOVf2ronzFaTipKL7K2rl+jv+pa/333z6Uy6rIRa6olQw4hzn1teK5kGYR8yo8d2vsSHBehE4Rs5XBOALeuYejyPDbtyeEg6y1AQRBPj40UndM/WovBBg/La3YoLQ6Pv3B0/6dcwP1kAg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725464972; c=relaxed/simple; bh=8TF0DZ64f28Pm8Phb6WrG+icgwirkNE86A0gihnv8N8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cDXW/1gO5iZhQz0v2tRdNklJxti6j398Kt7f+KyWPA3cOlf20OajDpsTC/XWO+wb+TrTGN3iV8IzsCG1ryxugoYcQzlakIfxvquaJv5THfz43QRGVvjZbUUXb/3zwE6pYPtifGh80Csn3NMV0GsPoXl4WegWncf8SNz5L0QQLDs= 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=KOzSRG26; arc=none smtp.client-ip=209.85.218.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="KOzSRG26" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a8a16c53d3cso369394766b.1; Wed, 04 Sep 2024 08:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725464969; x=1726069769; 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=orsagbjZ9uOmxNFDLl+5N5H1lZ9l2qcANXdjwlXzT7g=; b=KOzSRG26LSP16tzA2sMyFogmunvcIGU+grMlU3O3kco2nhLkrCJhoc/d2xJKQVq4zz aByaPsVERRcarbyUhGohX+NHq3s+/JqmDn8+ObhdW4NQApctOUwycBa0pLZYFawSJ5Ev NR0pOdKEIJWY4eM6fWMRU3owhFpLY75y5vHo/lZ7rDECCi8wTkocbRyFHl9ERnNCiYUy 8AMCczlKR99F8R2ZgMj7Rea36TBeNKaNe504PJn6e1AUoS6cyGe04qRO+O+h+xENcTun zpygoAxxJPc+/YIJOEv4UqXBxHASGQFXYT8eXG/LGfiP8HmX5X4bG7equ6oSA6PUtSBM GahQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725464969; x=1726069769; 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=orsagbjZ9uOmxNFDLl+5N5H1lZ9l2qcANXdjwlXzT7g=; b=DiZunWAG1j3HEQX/spOgphDESD7orxX68BfJLOiwBx4te493HRLqB1NCVxTkB4OsQM nabwonTspign/xpJ6mHJxbtQzHW3uKuRzyoJz09sqzHZP8hx5uiH7mN/5K5D3WlvD/J7 AM5XfRVxnc0GKYJuLVlDgVpdoCoBKSOpXMekv/HYZQgZ7fzrhxBBNdB0D3vLDEKq0wDV f1UYhES6SKvDKtX1L9/PCa2U5kg21SkceSvuKFhK6pdXMWImY4q31Or6ipEfTprHVG7z cy4c1K3r8B9fC3wSGBYTkcoKudGYbelj/3mDAuILqAG3+/it+c3gtXvB9zr25sWbcmIr ei7Q== X-Forwarded-Encrypted: i=1; AJvYcCUeVtWSxQlZFaDvAVZJTswAj5cpNRVHIWCYpIK/uzPW3TV/BsNaQ+f7AWqSnHTDbXcHPooWfJSe4JW8+tM=@vger.kernel.org, AJvYcCXeCpZozK+3ymeoF84Aqvx6KXc8fSLc4MTw3lrxw/G3gWI5SuZGf8ondzEi3qWv2JY6xwWYpRseWBaCpoiHVc8=@vger.kernel.org X-Gm-Message-State: AOJu0Yy/Op7suahQvilN+BQA7TnY82bWs03o09nVcaO1kpI3youA+xh2 nV9Y2I18dbxXvN5y/RCaPLfuSFqRtNieb0DTe3u19YXQ32FGIjfq X-Google-Smtp-Source: AGHT+IEduDzuYeOIdwhKy2JI4JAwMT+sVJ7/2Sg7vQy7HKUWdU3nIBK/2msTZnrIU+IDAkfsh92wDQ== X-Received: by 2002:a17:907:3f21:b0:a86:a694:aaf7 with SMTP id a640c23a62f3a-a897f77ed65mr1247603166b.10.1725464968841; Wed, 04 Sep 2024 08:49:28 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:2f85:317:e13:c18]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8a62038c0asm7825566b.62.2024.09.04.08.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 08:49:28 -0700 (PDT) From: Vasileios Amoiridis To: arend.vanspriel@broadcom.com, kvalo@kernel.org Cc: knaerzche@gmail.com, leitao@debian.org, linus.walleij@linaro.org, javierm@redhat.com, linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, linux-kernel@vger.kernel.org, Vasileios Amoiridis Subject: [PATCH wireless-next v2 3/3] wifi: wlcore: sdio: Use helper to define resources Date: Wed, 4 Sep 2024 17:49:19 +0200 Message-Id: <20240904154919.118513-4-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240904154919.118513-1-vassilisamir@gmail.com> References: <20240904154919.118513-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Resources definition can become simpler and more organised by using the dedicated helpers. Signed-off-by: Vasileios Amoiridis Tested-by: Sabeeh Khan Reviewed-by: Sabeeh Khan --- drivers/net/wireless/ti/wlcore/sdio.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c index 9e1b644beba9..a73207bbe5d7 100644 --- a/drivers/net/wireless/ti/wlcore/sdio.c +++ b/drivers/net/wireless/ti/wlcore/sdio.c @@ -323,15 +323,12 @@ static int wl1271_probe(struct sdio_func *func, memset(res, 0x00, sizeof(res)); - res[0].start = irq; - res[0].flags = IORESOURCE_IRQ | irq_get_trigger_type(irq); - res[0].name = "irq"; - + res[0] = DEFINE_RES_IRQ_NAMED(irq, "irq"); + res[0].flags |= irq_get_trigger_type(irq); if (wakeirq > 0) { - res[1].start = wakeirq; - res[1].flags = IORESOURCE_IRQ | irq_get_trigger_type(wakeirq); - res[1].name = "wakeirq"; + res[1] = DEFINE_RES_IRQ_NAMED(wakeirq, "wakeirq"); + res[1].flags |= irq_get_trigger_type(wakeirq); num_irqs = 2; } else { num_irqs = 1;