diff options
| author | Mark Brown <broonie@kernel.org> | 2019-07-04 12:33:59 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2019-07-04 12:33:59 -0400 |
| commit | aaccf3863ce22108ae1d3bac82604eec9d8ae44c (patch) | |
| tree | 42c89a621dfb7ad91d9377b785527fdb419d7bbd /include/linux/regmap.h | |
| parent | ea09b3e21f18a5e190b26388c6c5f51e174d845f (diff) | |
| parent | eff5a850017193ae879948944be05cc814c29621 (diff) | |
Merge branch 'regmap-5.3' into regmap-next
Diffstat (limited to 'include/linux/regmap.h')
| -rw-r--r-- | include/linux/regmap.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index d3dea823af8e..38e1369e8bd0 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
| @@ -22,6 +22,7 @@ struct module; | |||
| 22 | struct clk; | 22 | struct clk; |
| 23 | struct device; | 23 | struct device; |
| 24 | struct i2c_client; | 24 | struct i2c_client; |
| 25 | struct i3c_device; | ||
| 25 | struct irq_domain; | 26 | struct irq_domain; |
| 26 | struct slim_device; | 27 | struct slim_device; |
| 27 | struct spi_device; | 28 | struct spi_device; |
| @@ -621,6 +622,10 @@ struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus, | |||
| 621 | const struct regmap_config *config, | 622 | const struct regmap_config *config, |
| 622 | struct lock_class_key *lock_key, | 623 | struct lock_class_key *lock_key, |
| 623 | const char *lock_name); | 624 | const char *lock_name); |
| 625 | struct regmap *__devm_regmap_init_i3c(struct i3c_device *i3c, | ||
| 626 | const struct regmap_config *config, | ||
| 627 | struct lock_class_key *lock_key, | ||
| 628 | const char *lock_name); | ||
| 624 | /* | 629 | /* |
| 625 | * Wrapper for regmap_init macros to include a unique lockdep key and name | 630 | * Wrapper for regmap_init macros to include a unique lockdep key and name |
| 626 | * for each call. No-op if CONFIG_LOCKDEP is not set. | 631 | * for each call. No-op if CONFIG_LOCKDEP is not set. |
| @@ -979,6 +984,21 @@ bool regmap_ac97_default_volatile(struct device *dev, unsigned int reg); | |||
| 979 | #define devm_regmap_init_slimbus(slimbus, config) \ | 984 | #define devm_regmap_init_slimbus(slimbus, config) \ |
| 980 | __regmap_lockdep_wrapper(__devm_regmap_init_slimbus, #config, \ | 985 | __regmap_lockdep_wrapper(__devm_regmap_init_slimbus, #config, \ |
| 981 | slimbus, config) | 986 | slimbus, config) |
| 987 | |||
| 988 | /** | ||
| 989 | * devm_regmap_init_i3c() - Initialise managed register map | ||
| 990 | * | ||
| 991 | * @i3c: Device that will be interacted with | ||
| 992 | * @config: Configuration for register map | ||
| 993 | * | ||
| 994 | * The return value will be an ERR_PTR() on error or a valid pointer | ||
| 995 | * to a struct regmap. The regmap will be automatically freed by the | ||
| 996 | * device management code. | ||
| 997 | */ | ||
| 998 | #define devm_regmap_init_i3c(i3c, config) \ | ||
| 999 | __regmap_lockdep_wrapper(__devm_regmap_init_i3c, #config, \ | ||
| 1000 | i3c, config) | ||
| 1001 | |||
| 982 | int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk); | 1002 | int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk); |
| 983 | void regmap_mmio_detach_clk(struct regmap *map); | 1003 | void regmap_mmio_detach_clk(struct regmap *map); |
| 984 | void regmap_exit(struct regmap *map); | 1004 | void regmap_exit(struct regmap *map); |
