regmap: Add a bulk field API

Useful for devices with many fields.
regmap: add support to regmap_field_bulk_alloc/free apis

Usage of regmap_field_alloc becomes much overhead when number of fields
exceed more than 3.
QCOM LPASS driver has extensively converted to use regmap_fields.

Using new bulk api to allocate fields makes it much more cleaner code to read!

Signed-off-by: Srinivas Kandagatla <>
Tested-by: Srinivasa Rao Mandadapu <>
Signed-off-by: Mark Brown <>
2 files changed