diff options
Diffstat (limited to 'include/linux/regmap.h')
| -rw-r--r-- | include/linux/regmap.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index dc90b8c134a1..e55907804d39 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
| @@ -23,6 +23,7 @@ struct device; | |||
| 23 | struct i2c_client; | 23 | struct i2c_client; |
| 24 | struct irq_domain; | 24 | struct irq_domain; |
| 25 | struct spi_device; | 25 | struct spi_device; |
| 26 | struct spmi_device; | ||
| 26 | struct regmap; | 27 | struct regmap; |
| 27 | struct regmap_range_cfg; | 28 | struct regmap_range_cfg; |
| 28 | struct regmap_field; | 29 | struct regmap_field; |
| @@ -70,6 +71,8 @@ struct regmap_range { | |||
| 70 | unsigned int range_max; | 71 | unsigned int range_max; |
| 71 | }; | 72 | }; |
| 72 | 73 | ||
| 74 | #define regmap_reg_range(low, high) { .range_min = low, .range_max = high, } | ||
| 75 | |||
| 73 | /* | 76 | /* |
| 74 | * A table of ranges including some yes ranges and some no ranges. | 77 | * A table of ranges including some yes ranges and some no ranges. |
| 75 | * If a register belongs to a no_range, the corresponding check function | 78 | * If a register belongs to a no_range, the corresponding check function |
| @@ -318,6 +321,8 @@ struct regmap *regmap_init_i2c(struct i2c_client *i2c, | |||
| 318 | const struct regmap_config *config); | 321 | const struct regmap_config *config); |
| 319 | struct regmap *regmap_init_spi(struct spi_device *dev, | 322 | struct regmap *regmap_init_spi(struct spi_device *dev, |
| 320 | const struct regmap_config *config); | 323 | const struct regmap_config *config); |
| 324 | struct regmap *regmap_init_spmi(struct spmi_device *dev, | ||
| 325 | const struct regmap_config *config); | ||
| 321 | struct regmap *regmap_init_mmio_clk(struct device *dev, const char *clk_id, | 326 | struct regmap *regmap_init_mmio_clk(struct device *dev, const char *clk_id, |
| 322 | void __iomem *regs, | 327 | void __iomem *regs, |
| 323 | const struct regmap_config *config); | 328 | const struct regmap_config *config); |
| @@ -330,6 +335,8 @@ struct regmap *devm_regmap_init_i2c(struct i2c_client *i2c, | |||
| 330 | const struct regmap_config *config); | 335 | const struct regmap_config *config); |
| 331 | struct regmap *devm_regmap_init_spi(struct spi_device *dev, | 336 | struct regmap *devm_regmap_init_spi(struct spi_device *dev, |
| 332 | const struct regmap_config *config); | 337 | const struct regmap_config *config); |
| 338 | struct regmap *devm_regmap_init_spmi(struct spmi_device *dev, | ||
| 339 | const struct regmap_config *config); | ||
| 333 | struct regmap *devm_regmap_init_mmio_clk(struct device *dev, const char *clk_id, | 340 | struct regmap *devm_regmap_init_mmio_clk(struct device *dev, const char *clk_id, |
| 334 | void __iomem *regs, | 341 | void __iomem *regs, |
| 335 | const struct regmap_config *config); | 342 | const struct regmap_config *config); |
| @@ -379,6 +386,8 @@ int regmap_raw_write(struct regmap *map, unsigned int reg, | |||
| 379 | const void *val, size_t val_len); | 386 | const void *val, size_t val_len); |
| 380 | int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, | 387 | int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, |
| 381 | size_t val_count); | 388 | size_t val_count); |
| 389 | int regmap_multi_reg_write(struct regmap *map, struct reg_default *regs, | ||
| 390 | int num_regs); | ||
| 382 | int regmap_raw_write_async(struct regmap *map, unsigned int reg, | 391 | int regmap_raw_write_async(struct regmap *map, unsigned int reg, |
| 383 | const void *val, size_t val_len); | 392 | const void *val, size_t val_len); |
| 384 | int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val); | 393 | int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val); |
