]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Add regmap_fields APIs
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 2 Sep 2013 03:30:50 +0000 (20:30 -0700)
committerMark Brown <broonie@linaro.org>
Tue, 17 Sep 2013 12:46:57 +0000 (13:46 +0100)
commitb63a3f7fea38f4d285e64ef83284d25c446a7093
treec24bd05318c5bb9211c0b38867dfa9d0eb99bd8d
parent956094184f98ad3b59198ceb919084ad319171c7
regmap: Add regmap_fields APIs

Current Linux kernel is supporting regmap_field method
and it is very useful feature.
It needs one regmap_filed for one register access.

OTOH, there is multi port device which
has many same registers in the market.
The difference for each register access is
only its address offset.

Current API needs many regmap_field for such device,
but it is not good.
This patch adds new regmap_fileds API which can care
about multi port/offset access via regmap.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c
include/linux/regmap.h