drm/nouveau/clk/gk20a: abstract pl_to_div
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 12 Feb 2016 04:56:38 +0000 (13:56 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 14 Mar 2016 00:13:55 +0000 (10:13 +1000)
commit195c113773c50fbc2bbe319d48ce82e43d9ff09c
treebd268abc874fdacf62e3a9543bb8c947c6a3dfbb
parenta04bc140aa52e4c0c781e42be8d49575b30ccd5b
drm/nouveau/clk/gk20a: abstract pl_to_div

pl_to_div may be done differently depending on the chip. Abstract this
operation so the same logic can be reused for them as well.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c