]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74511d589eee744be2a732dde68586c52b65cd2d
treeda174a92ebd85aaab38813709e8c319d6a163a1d
parentb62ac4df21ef87b33b9873c9f1585087e1eaf55d
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