commit | 761c8f69afdf34c100ccdde1df01163cda4f25e8 | [log] [tgz] |
---|---|---|
author | Karol Herbst <karolherbst@gmail.com> | Tue Jul 12 21:36:08 2016 +0200 |
committer | Ben Skeggs <bskeggs@redhat.com> | Wed Oct 12 17:29:22 2016 +1000 |
tree | 3ef03a90768f62312950625775cf6c1a372be455 | |
parent | fa6c4d8e2c614817c956a4ab59ab8bb24fb3653f [diff] |
drm/nouveau/clk: Add index field to nvkm_cstate It is better to read out the id out of the cstate struct directly instead of iterating over the list of cstates over and over again. Especially when we start saving pointers to a nvkm_cstate struct, it makes things easier. v5: Rename field to id. Signed-off-by: Karol Herbst <karolherbst@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>