Re: [PATCH 3/8] regmap: Add SPI bus support

Lars-Peter Clausen
2011-06-20T23:28:13Z

On 06/20/2011 02:54 PM, Mark Brown wrote:
> [...]
> +
> +static int regmap_spi_read(struct device *dev,
> + const void *reg, size_t reg_size,
> + void *val, size_t val_size)
> +{
> + struct spi_device *spi = to_spi_device(dev);
> +
> + return spi_write_then_read(spi, reg, reg_size, val, val_size);

spi_write_then_read will use a bounce buffer internally, since we already have
our own bounce buffer it is probably better to use the low-level spi interface
directly in this case.