]> git.karo-electronics.de Git - linux-beck.git/commit
drm/nouveau/clk: Fixup cstate selection
authorKarol Herbst <karolherbst@gmail.com>
Tue, 12 Jul 2016 19:36:08 +0000 (21:36 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 12 Oct 2016 07:29:23 +0000 (17:29 +1000)
commit0d6f81003e9ecc2d6552be92d3d894c916097552
tree4e25d1e3a923b2365c77fee3a34d89827b1c4f09
parent8d08c264d2b26c7b9c10790f95464b21e28dc30d
drm/nouveau/clk: Fixup cstate selection

Now the cstatei parameter can be used of the nvkm_cstate_prog function to
select a specific cstate.

v5: Make a constant for the magic value.
    Use list_last_entry.
    Add nvkm_cstate_get here instead of in the next commit.

Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c