]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clk: sunxi: factors: fix off-by-one masks
authorEmilio López <emilio@elopez.com.ar>
Sat, 21 Sep 2013 01:03:10 +0000 (22:03 -0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 10 Nov 2013 10:39:46 +0000 (11:39 +0100)
commitc518e84c76e12e12a2a3404a293b2465af9be5f8
tree87db4e2a7da53dab70523eb037e05190cfcc842b
parent107f3198fd2c5902b9cc54c86a0c86f815c173e2
clk: sunxi: factors: fix off-by-one masks

The previous code would generate one bit too long masks, and was
needlessly complicated. This patch replaces it by simpler code that can
generate the masks correctly.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-factors.c