diff options
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_vf_point.h')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_vf_point.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_vf_point.h b/drivers/gpu/nvgpu/clk/clk_vf_point.h index 306bec41..15920066 100644 --- a/drivers/gpu/nvgpu/clk/clk_vf_point.h +++ b/drivers/gpu/nvgpu/clk/clk_vf_point.h | |||
@@ -46,8 +46,8 @@ struct clk_vf_point_freq { | |||
46 | }; | 46 | }; |
47 | 47 | ||
48 | #define CLK_CLK_VF_POINT_GET(pclk, idx) \ | 48 | #define CLK_CLK_VF_POINT_GET(pclk, idx) \ |
49 | ((struct clk_vf_point)BOARDOBJGRP_OBJ_GET_BY_IDX( \ | 49 | ((struct clk_vf_point *)BOARDOBJGRP_OBJ_GET_BY_IDX( \ |
50 | &pclk->vfpoints.super.super, (u8)(idx))) | 50 | &pclk->clk_vf_pointobjs.super.super, (u8)(idx))) |
51 | 51 | ||
52 | #define clkvfpointpairget(pvfpoint) \ | 52 | #define clkvfpointpairget(pvfpoint) \ |
53 | (&((pvfpoint)->pair)) | 53 | (&((pvfpoint)->pair)) |
@@ -66,6 +66,9 @@ struct clk_vf_point_freq { | |||
66 | CTRL_CLK_VF_PAIR_VOLTAGE_UV_SET(clkvfpointpairget(pvfpoint), \ | 66 | CTRL_CLK_VF_PAIR_VOLTAGE_UV_SET(clkvfpointpairget(pvfpoint), \ |
67 | _voltageuv) | 67 | _voltageuv) |
68 | 68 | ||
69 | #define clkvfpointvoltageuvget(pgpu, pvfpoint) \ | ||
70 | CTRL_CLK_VF_PAIR_VOLTAGE_UV_GET(clkvfpointpairget(pvfpoint)) \ | ||
71 | |||
69 | struct clk_vf_point *construct_clk_vf_point(struct gk20a *g, void *pargs); | 72 | struct clk_vf_point *construct_clk_vf_point(struct gk20a *g, void *pargs); |
70 | 73 | ||
71 | #endif | 74 | #endif |