]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clk: tegra: Introduce divider mask and shift helpers
authorThierry Reding <treding@nvidia.com>
Fri, 4 Apr 2014 13:55:14 +0000 (15:55 +0200)
committerPeter De Schrijver <pdeschrijver@nvidia.com>
Thu, 17 Apr 2014 11:12:40 +0000 (14:12 +0300)
commitc61e4e75b95bda4c6fec134aa9f08b5629b532e6
treed51db378950004f0b606425e24be05da5fc5fa49
parentd0f02ce3b1685ef6ffe43692034599790f83e7ab
clk: tegra: Introduce divider mask and shift helpers

Add div{m,n,p}_shift() and div{m,n,p}_mask_shifted() helpers to make the
code that modifies the m-, n- and p-divider fields of PLLs shorter and
easier to read.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-pll.c