From: Chen-Yu Tsai Date: Tue, 13 Jan 2015 01:37:23 +0000 (+0800) Subject: clk: sunxi: Add a common setup function for mmc module clocks X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~17^2~13^2~19^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb378df79e80772c1cbed32882b7378eb6f6c52c;p=pandora-kernel.git clk: sunxi: Add a common setup function for mmc module clocks The only difference between module clocks on different platforms is the width of the mux register bits and the valid values, which are passed in through struct factors_data. The phase clocks parts are identical. This patch generalizes the setup function, so most of the code can be reused when adding sun9i support, which has a wider mux register. Signed-off-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- Reading git-diff-tree failed