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>
このコミットが含まれているのは:
Karol Herbst
2016-07-12 21:36:08 +02:00
committed by Ben Skeggs
コミット 761c8f69af
2個のファイルの変更2行の追加0行の削除

ファイルの表示

@@ -52,6 +52,7 @@ struct nvkm_cstate {
struct list_head head;
u8 voltage;
u32 domain[nv_clk_src_max];
u8 id;
};
struct nvkm_pstate {