[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20111003163441.GH23811@sirena.org.uk>
Date: Mon, 3 Oct 2011 17:34:41 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: alsa-devel@...a-project.org,
Russell King - ARM Linux <linux@....linux.org.uk>,
Dmitry Artamonow <mad_soft@...ox.ru>,
linux-kernel@...r.kernel.org, Liam Girdwood <lrg@...com>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [alsa-devel] [PATCH 2/6] ASoC: codecs: AK4641 depends on
GPIOLIB
On Mon, Oct 03, 2011 at 06:19:48PM +0200, Arnd Bergmann wrote:
> When the GPIO API is stubbed out, the definition of struct gpio
> is empty, so you cannot access the members, which seems to be
> intentional behavior.
That doesn't seem terribly helpful, it means drivers either need to
ifdef or not use the bulk functions.
> struct device;
> -struct gpio;
> +struct gpio {
> + unsigned gpio;
> + unsigned long flags;
> + const char *label;
> +};
This looks much more sensible to me.
> select SND_SOC_WL1273 if MFD_WL1273_CORE
> - select SND_SOC_WM1250_EV1 if I2C
> + select SND_SOC_WM1250_EV1 if I2C && GENERIC_GPIO
Or ifdefs in the driver.
--
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