regmap: add support to regmap_field_bulk_alloc/free apis
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 25 Sep 2020 16:48:55 +0000 (17:48 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 28 Sep 2020 19:50:03 +0000 (20:50 +0100)
commitea470b82f205fc1b0b5276575da519bb7d86db25
tree331d4c5df5c88134b2dc207e387b0e821716b6e3
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
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 <srinivas.kandagatla@linaro.org>
Tested-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
Link: https://lore.kernel.org/r/20200925164856.10315-2-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c
include/linux/regmap.h