diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-06-20 14:02:29 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-23 02:56:39 -0400 |
commit | 9943fa300a5dcd4536e9a4aa5c09cf94e5e7b28c (patch) | |
tree | d846756bbc3feb9ffd8d3d2b6aa7ff876c39d367 /include/linux | |
parent | b83a313bf2520183641cf485d68cc273323597d2 (diff) |
regmap: Add I2C 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')
-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 a26c1d001401..5ba61f22c703 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
@@ -17,6 +17,8 @@ | |||
17 | #include <linux/list.h> | 17 | #include <linux/list.h> |
18 | #include <linux/module.h> | 18 | #include <linux/module.h> |
19 | 19 | ||
20 | struct i2c_client; | ||
21 | |||
20 | struct regmap_config { | 22 | struct regmap_config { |
21 | int reg_bits; | 23 | int reg_bits; |
22 | int val_bits; | 24 | int val_bits; |
@@ -59,6 +61,8 @@ struct regmap_bus { | |||
59 | struct regmap *regmap_init(struct device *dev, | 61 | struct regmap *regmap_init(struct device *dev, |
60 | const struct regmap_bus *bus, | 62 | const struct regmap_bus *bus, |
61 | const struct regmap_config *config); | 63 | const struct regmap_config *config); |
64 | struct regmap *regmap_init_i2c(struct i2c_client *i2c, | ||
65 | const struct regmap_config *config); | ||
62 | void regmap_exit(struct regmap *map); | 66 | void regmap_exit(struct regmap *map); |
63 | int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); | 67 | int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); |
64 | int regmap_raw_write(struct regmap *map, unsigned int reg, | 68 | int regmap_raw_write(struct regmap *map, unsigned int reg, |