mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-21 14:21:48 +00:00
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>
This commit is contained in:
parent
b83a313bf2
commit
9943fa300a
4 changed files with 124 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
|||
#include <linux/list.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
struct i2c_client;
|
||||
|
||||
struct regmap_config {
|
||||
int reg_bits;
|
||||
int val_bits;
|
||||
|
@ -59,6 +61,8 @@ struct regmap_bus {
|
|||
struct regmap *regmap_init(struct device *dev,
|
||||
const struct regmap_bus *bus,
|
||||
const struct regmap_config *config);
|
||||
struct regmap *regmap_init_i2c(struct i2c_client *i2c,
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue