[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4813AEB6.9070901@keyaccess.nl>
Date: Sun, 27 Apr 2008 00:37:42 +0200
From: Rene Herman <rene.herman@...access.nl>
To: Bjorn Helgaas <bjorn.helgaas@...com>
CC: Len Brown <lenb@...nel.org>, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org, Adam Belay <ambx1@....rr.com>,
Adam M Belay <abelay@....edu>,
Li Shaohua <shaohua.li@...el.com>,
Matthieu Castet <castet.matthieu@...e.fr>,
Thomas Renninger <trenn@...e.de>,
Jaroslav Kysela <perex@...ex.cz>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [patch 44/54] PNP: add pnp_new_resource() to find a new unset
pnp_resource
On 25-04-08 20:38, Bjorn Helgaas wrote:
> + switch (type) {
> + case IORESOURCE_IO:
> + for (i = 0; i < PNP_MAX_PORT; i++) {
> + pnp_res = &dev->res->port[i];
> + res = &pnp_res->res;
> + if (res->flags & IORESOURCE_UNSET)
> + return pnp_res;
Again possible users of pnp_resource_valid().
> + }
> + break;
> + case IORESOURCE_MEM:
> + for (i = 0; i < PNP_MAX_MEM; i++) {
> + pnp_res = &dev->res->mem[i];
> + res = &pnp_res->res;
> + if (res->flags & IORESOURCE_UNSET)
> + return pnp_res;
> + }
> + break;
> + case IORESOURCE_IRQ:
> + for (i = 0; i < PNP_MAX_IRQ; i++) {
> + pnp_res = &dev->res->irq[i];
> + res = &pnp_res->res;
> + if (res->flags & IORESOURCE_UNSET)
> + return pnp_res;
> + }
> + break;
> + case IORESOURCE_DMA:
> + for (i = 0; i < PNP_MAX_DMA; i++) {
> + pnp_res = &dev->res->dma[i];
> + res = &pnp_res->res;
> + if (res->flags & IORESOURCE_UNSET)
> + return pnp_res;
> + }
> + break;
> + }
> + return NULL;
> +}
> +
Rene
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists