summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-05-12 09:42:10 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-23 06:56:59 (GMT)
commita676f083068b08e676c557279effbd7f4d590812 (patch)
tree06161eab88e942cd6c4d672f51fbd9011018cb5d /include
parent9943fa300a5dcd4536e9a4aa5c09cf94e5e7b28c (diff)
downloadlinux-a676f083068b08e676c557279effbd7f4d590812.tar.xz
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')
-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 5ba61f2..60a65cd 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -18,6 +18,7 @@
#include <linux/module.h>
struct i2c_client;
+struct spi_device;
struct regmap_config {
int reg_bits;
@@ -63,6 +64,9 @@ struct regmap *regmap_init(struct device *dev,
const struct regmap_config *config);
struct regmap *regmap_init_i2c(struct i2c_client *i2c,
const struct regmap_config *config);
+struct regmap *regmap_init_spi(struct spi_device *dev,
+ const struct regmap_config *config);
+
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,