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 <email@example.com>
Tested-by: Srinivasa Rao Mandadapu <firstname.lastname@example.org>
Signed-off-by: Mark Brown <email@example.com>
2 files changed