From: Peter Ujfalusi Date: Fri, 3 Jan 2014 13:27:46 +0000 (+0200) Subject: mfd: twl-core: Simplify IO wrapper functions by moving common code out X-Git-Tag: v3.14-rc1~142^2~47^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8daf3540659c22b4d3530512a3695728482ec23f;p=pandora-kernel.git 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 Acked-by: Mark Brown Signed-off-by: Lee Jones --- Reading git-diff-tree failed