From: Stephen Boyd Date: Fri, 7 Mar 2014 06:44:46 +0000 (-0800) Subject: pinctrl: msm: Simplify msm_config_reg() and callers X-Git-Tag: v3.15-rc1~150^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=051a58b4622f0e1b732acb750097c64bc00ddb93;p=pandora-kernel.git pinctrl: msm: Simplify msm_config_reg() and callers We don't need to check for a negative reg here because reg is always the same and is always non-negative. Also, collapse the switch statement down for the duplicate cases. Signed-off-by: Stephen Boyd Acked-by: Bjorn Andersson Signed-off-by: Linus Walleij --- Reading git-diff-tree failed