drm/nouveau/clk/gk20a: split gk20a_clk_new()
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 12 Feb 2016 05:22:17 +0000 (14:22 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 14 Mar 2016 00:13:55 +0000 (10:13 +1000)
commit2efd3908517d0d32014dd88ccece9f40c3c4e13a
treeda174a92ebd85aaab38813709e8c319d6a163a1d
parent195c113773c50fbc2bbe319d48ce82e43d9ff09c
drm/nouveau/clk/gk20a: split gk20a_clk_new()

This allows to instanciate drivers that use the same logic as gk20a with
different parameters.

Add a constructor function to allow other chips that inherit from this
clock to easily initialize its members

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