Skip to content

Commit e758aba

Browse files
committed
drm/amd/powerplay: rv: Use designated initializers
As done for vega10 in commit 3ddd396 ("drm/amd/powerplay: Use designated initializers") mark other tableFunction entries with designated initializers. The randstruct plugin requires designated initializers for structures that are entirely function pointers. Cc: Rex Zhu <[email protected]> Cc: Hawking Zhang <[email protected]> Signed-off-by: Kees Cook <[email protected]> Acked-by: Alex Deucher <[email protected]>
1 parent 520eccd commit e758aba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ static int rv_tf_set_num_active_display(struct pp_hwmgr *hwmgr, void *input,
308308
}
309309

310310
static const struct phm_master_table_item rv_set_power_state_list[] = {
311-
{ NULL, rv_tf_set_clock_limit },
312-
{ NULL, rv_tf_set_num_active_display },
311+
{ .tableFunction = rv_tf_set_clock_limit },
312+
{ .tableFunction = rv_tf_set_num_active_display },
313313
{ }
314314
};
315315

@@ -382,7 +382,7 @@ static int rv_tf_disable_gfx_off(struct pp_hwmgr *hwmgr,
382382
}
383383

384384
static const struct phm_master_table_item rv_disable_dpm_list[] = {
385-
{NULL, rv_tf_disable_gfx_off},
385+
{ .tableFunction = rv_tf_disable_gfx_off },
386386
{ },
387387
};
388388

@@ -407,7 +407,7 @@ static int rv_tf_enable_gfx_off(struct pp_hwmgr *hwmgr,
407407
}
408408

409409
static const struct phm_master_table_item rv_enable_dpm_list[] = {
410-
{NULL, rv_tf_enable_gfx_off},
410+
{ .tableFunction = rv_tf_enable_gfx_off },
411411
{ },
412412
};
413413

0 commit comments

Comments
 (0)