diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-05-12 05:42:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-23 02:56:59 -0400 |
commit | a676f083068b08e676c557279effbd7f4d590812 (patch) | |
tree | 06161eab88e942cd6c4d672f51fbd9011018cb5d /include/linux/regmap.h | |
parent | 9943fa300a5dcd4536e9a4aa5c09cf94e5e7b28c (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.h | 4 |
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 | ||
20 | struct i2c_client; | 20 | struct i2c_client; |
21 | struct spi_device; | ||
21 | 22 | ||
22 | struct regmap_config { | 23 | struct 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); |
64 | struct regmap *regmap_init_i2c(struct i2c_client *i2c, | 65 | struct regmap *regmap_init_i2c(struct i2c_client *i2c, |
65 | const struct regmap_config *config); | 66 | const struct regmap_config *config); |
67 | struct regmap *regmap_init_spi(struct spi_device *dev, | ||
68 | const struct regmap_config *config); | ||
69 | |||
66 | void regmap_exit(struct regmap *map); | 70 | void regmap_exit(struct regmap *map); |
67 | int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); | 71 | int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); |
68 | int regmap_raw_write(struct regmap *map, unsigned int reg, | 72 | int regmap_raw_write(struct regmap *map, unsigned int reg, |