aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-05-12 05:42:10 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-23 02:56:59 -0400
commita676f083068b08e676c557279effbd7f4d590812 (patch)
tree06161eab88e942cd6c4d672f51fbd9011018cb5d /include/linux/regmap.h
parent9943fa300a5dcd4536e9a4aa5c09cf94e5e7b28c (diff)
regmap: Add SPI bus support
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 5ba61f22c703..60a65cd7e1a0 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -18,6 +18,7 @@
18#include <linux/module.h> 18#include <linux/module.h>
19 19
20struct i2c_client; 20struct i2c_client;
21struct spi_device;
21 22
22struct regmap_config { 23struct regmap_config {
23 int reg_bits; 24 int reg_bits;
@@ -63,6 +64,9 @@ struct regmap *regmap_init(struct device *dev,
63 const struct regmap_config *config); 64 const struct regmap_config *config);
64struct regmap *regmap_init_i2c(struct i2c_client *i2c, 65struct regmap *regmap_init_i2c(struct i2c_client *i2c,
65 const struct regmap_config *config); 66 const struct regmap_config *config);
67struct regmap *regmap_init_spi(struct spi_device *dev,
68 const struct regmap_config *config);
69
66void regmap_exit(struct regmap *map); 70void regmap_exit(struct regmap *map);
67int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); 71int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
68int regmap_raw_write(struct regmap *map, unsigned int reg, 72int regmap_raw_write(struct regmap *map, unsigned int reg,