]> git.baikalelectronics.ru Git - kernel.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)
commit0a4c50ecebd9f4d1caac138a09f4bb6d015f55a4
treed51db378950004f0b606425e24be05da5fc5fa49
parent1fd17b93c4427f56515d637e6f6fb20394a68778
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