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

From: Grant Likely
Date: Tue Jul 19 2011 - 17:51:34 EST


On Mon, Jul 18, 2011 at 07:07:42PM +0900, Mark Brown wrote:
> Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Acked-by: Liam Girdwood <lrg@xxxxxx>
> Acked-by: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>

One comment below, but otherwise:

Acked-by: Grant Likely <grant.likely@xxxxxxxxxxxx>

on the whole series.
> diff --git a/include/linux/regmap.h b/include/linux/regmap.h
> index e509bac..c549632 100644
> --- a/include/linux/regmap.h
> +++ b/include/linux/regmap.h
> @@ -61,6 +61,9 @@ struct regmap *regmap_init(struct device *dev,
> const struct regmap_config *config);
> struct regmap *regmap_init_i2c(struct device *dev,
> const struct regmap_config *config);
> +struct regmap *regmap_init_spi(struct device *dev,
> + const struct regmap_config *config);
> +

regmap_init_i2c/spi should take an i2c_client and spi_device pointer
respectively so it can be type checked.

> void regmap_exit(struct regmap *map);
> int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
> int regmap_raw_write(struct regmap *map, unsigned int reg,
> --
> 1.7.5.4
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/