diff options
author | 2020-09-28 20:50:47 +0100 | |
---|---|---|
committer | 2020-09-28 20:50:47 +0100 | |
commit | d05199af72cbb97b6a293b632ffdd09c4757d5fe (patch) | |
tree | 944d77d383be4f7ecd7b3664b58e4f0b30f5133b /include/linux/regmap.h | |
parent | Merge series "use semicolons rather than commas to separate statements" from ... (diff) | |
parent | regmap: add support to regmap_field_bulk_alloc/free apis (diff) | |
download | linux-d05199af72cbb97b6a293b632ffdd09c4757d5fe.tar.gz linux-d05199af72cbb97b6a293b632ffdd09c4757d5fe.tar.bz2 linux-d05199af72cbb97b6a293b632ffdd09c4757d5fe.zip |
Merge tag 'regmap-field-bulk-api' into regmap-5.10
regmap: Add a bulk field API
Useful for devices with many fields.
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 0c49d59168b5..a35ec0a0d6e0 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -1189,6 +1189,17 @@ struct regmap_field *devm_regmap_field_alloc(struct device *dev, struct regmap *regmap, struct reg_field reg_field); void devm_regmap_field_free(struct device *dev, struct regmap_field *field); +int regmap_field_bulk_alloc(struct regmap *regmap, + struct regmap_field **rm_field, + struct reg_field *reg_field, + int num_fields); +void regmap_field_bulk_free(struct regmap_field *field); +int devm_regmap_field_bulk_alloc(struct device *dev, struct regmap *regmap, + struct regmap_field **field, + struct reg_field *reg_field, int num_fields); +void devm_regmap_field_bulk_free(struct device *dev, + struct regmap_field *field); + int regmap_field_read(struct regmap_field *field, unsigned int *val); int regmap_field_update_bits_base(struct regmap_field *field, unsigned int mask, unsigned int val, |