[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130129013858.GA4748@opensource.wolfsonmicro.com>
Date: Tue, 29 Jan 2013 09:39:01 +0800
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Stephen Boyd <sboyd@...eaurora.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] regmap: spi: Support asynchronous I/O for SPI
On Mon, Jan 28, 2013 at 11:38:50AM -0800, Stephen Boyd wrote:
> On 01/27/13 06:12, Mark Brown wrote:
> > +static int regmap_spi_async_write(void *context,
> > + const void *reg, size_t reg_len,
> > + const void *val, size_t val_len,
> > + struct regmap_async *a)
> > +{
> > + struct regmap_async_spi *async = (void *)a;
> Can you use container_of() here?
We could but I tend not to if the interface strictly requires that the
pointers be type punnable.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists