[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1302608642.3639.17.camel@jlt3.sipsolutions.net>
Date: Tue, 12 Apr 2011 13:44:02 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Antonio Ospite <ospite@...denti.unina.it>
Cc: linux-wireless@...r.kernel.org, openezx-devel@...ts.openezx.org,
"John W . Linville" <linville@...driver.com>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
linux-kernel@...r.kernel.org, Marek Vasut <marek.vasut@...il.com>,
Guiming Zhuo <gmzhuo@...il.com>
Subject: Re: [PATCH v2] rfkill: Regulator consumer driver for rfkill
On Tue, 2011-04-12 at 13:41 +0200, Johannes Berg wrote:
> > + * static struct regulator_consumer_supply pcap_regulator_V6_consumers [] = {
> > + * { .dev_name = "rfkill-regulator.0", supply = "vrfkill" },
> > + * };
>
> It's a comment, but it should be .supply = (missing the .)
>
> > + if (pdata->name == NULL || pdata->type == 0) {
> > + dev_err(&pdev->dev, "invalid name or type in platform data\n");
> > + return -EINVAL;
> > + }
> > +
> > + vcc = regulator_get_exclusive(&pdev->dev, "vrfkill");
>
> Wasn't that supposed to use pdata->supply? Actually, there's no member
> "supply" in the struct?
Oh wait, I think I just misunderstood how this works. But if the name is
"vrfkill" how does that really work with multiple instances?
johannes
--
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