lkml.org 
[lkml]   [2020]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] regmap: add support to regmap_field_bulk_alloc/free
Date
Usage of regmap_field_alloc becomes much overhead when number of fields
exceed more than 3. Most of driver seems to totally covered up with these
allocs/free making to very hard to read the code! On such driver is QCOM LPASS
driver has extensively converted to use regmap_fileds.

This patchset add this new api and a user of it.

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

Srinivas Kandagatla (2):
regmap: add support to regmap_field_bulk_alloc/free apis
ASoC: lpass-platform: use devm_regmap_field_bulk_alloc

drivers/base/regmap/regmap.c | 100 ++++++++++++++++++++++++++++++++
include/linux/regmap.h | 11 ++++
sound/soc/qcom/lpass-platform.c | 31 +++-------
3 files changed, 118 insertions(+), 24 deletions(-)

--
2.21.0

\
 
 \ /
  Last update: 2020-09-25 11:28    [W:0.097 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site