mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Khan, Sabeeh" <sabeeh-khan@ti.com>
To: Vasileios Amoiridis <vassilisamir@gmail.com>,
	<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>, <sabeeh-khan@ti.com>
Subject: Re: [PATCH wireless-next v2 3/3] wifi: wlcore: sdio: Use helper to define resources
Date: Mon, 9 Sep 2024 13:38:58 +0400	[thread overview]
Message-ID: <c2886640-e342-4b2f-8c24-02c6edd901eb@ti.com> (raw)
In-Reply-To: <20240904154919.118513-4-vassilisamir@gmail.com>

Hi Vasileios,

On 9/4/2024 7:49 PM, Vasileios Amoiridis wrote:
> Resources definition can become simpler and more organised by
> using the dedicated helpers.
>
> Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
> ---
>  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;

Tested-by: Sabeeh Khan <sabeeh-khan@ti.com>
Reviewed-by: Sabeeh Khan <sabeeh-khan@ti.com>


  reply	other threads:[~2024-09-09  9:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-04 15:49 [PATCH wireless-next v2 0/3] Use functionality of Vasileios Amoiridis
2024-09-04 15:49 ` [PATCH wireless-next v2 1/3] wifi: brcmfmac: of: Make use of irq_get_trigger_type() Vasileios Amoiridis
2024-09-18 13:53   ` Kalle Valo
2024-09-04 15:49 ` [PATCH wireless-next v2 2/3] wifi: wlcore: sdio: " Vasileios Amoiridis
2024-09-09  9:36   ` Khan, Sabeeh
2024-09-04 15:49 ` [PATCH wireless-next v2 3/3] wifi: wlcore: sdio: Use helper to define resources Vasileios Amoiridis
2024-09-09  9:38   ` Khan, Sabeeh [this message]
2024-09-10 21:58     ` Vasileios Amoiridis

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=c2886640-e342-4b2f-8c24-02c6edd901eb@ti.com \
    --to=sabeeh-khan@ti.com \
    --cc=arend.vanspriel@broadcom.com \
    --cc=brcm80211-dev-list.pdl@broadcom.com \
    --cc=brcm80211@lists.linux.dev \
    --cc=javierm@redhat.com \
    --cc=knaerzche@gmail.com \
    --cc=kvalo@kernel.org \
    --cc=leitao@debian.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=vassilisamir@gmail.com \
    /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

all inboxes | Powered by JetHome®