summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max8925-core.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-01-03 14:27:46 +0100
committerLee Jones <lee.jones@linaro.org>2014-01-08 12:36:59 +0100
commit8daf3540659c22b4d3530512a3695728482ec23f (patch)
treeb2319d6ccc4098ee2891ce1bfff6b1b9c6dbf811 /drivers/mfd/max8925-core.c
parentmfd: twl6040: reg_defaults support for regmap (diff)
downloadlinux-8daf3540659c22b4d3530512a3695728482ec23f.tar.xz
linux-8daf3540659c22b4d3530512a3695728482ec23f.zip
mfd: twl-core: Simplify IO wrapper functions by moving common code out
The new twl_get_regmap() function will return a pointer to the regmap needed for the given module. Since both read and write function were using the same code to do the lookup we can reuse this in both places to simplify the code. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max8925-core.c')
0 files changed, 0 insertions, 0 deletions