diff options
author | Kees Cook <keescook@chromium.org> | 2017-05-06 04:09:00 -0400 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-05-28 13:23:01 -0400 |
commit | 3ddd396f6b57cbd5cb034498b5c4cd3dd920cf15 (patch) | |
tree | 917d6a02603e9dc42ac1f187d5d63153580fb3b9 | |
parent | 2a9d6d26e2b76eee1064d221b49f3ec527546c53 (diff) |
drm/amd/powerplay: Use designated initializers
The randstruct plugin requires designated initializers for structures
that are entirely function pointers.
Cc: Christian König <christian.koenig@amd.com>
Cc: Eric Huang <JinHuiEric.Huang@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c index d5f53d04fa08..83e40fe51b62 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | |||
@@ -709,17 +709,17 @@ static int tf_vega10_thermal_disable_alert(struct pp_hwmgr *hwmgr, | |||
709 | 709 | ||
710 | static struct phm_master_table_item | 710 | static struct phm_master_table_item |
711 | vega10_thermal_start_thermal_controller_master_list[] = { | 711 | vega10_thermal_start_thermal_controller_master_list[] = { |
712 | {NULL, tf_vega10_thermal_initialize}, | 712 | { .tableFunction = tf_vega10_thermal_initialize }, |
713 | {NULL, tf_vega10_thermal_set_temperature_range}, | 713 | { .tableFunction = tf_vega10_thermal_set_temperature_range }, |
714 | {NULL, tf_vega10_thermal_enable_alert}, | 714 | { .tableFunction = tf_vega10_thermal_enable_alert }, |
715 | /* We should restrict performance levels to low before we halt the SMC. | 715 | /* We should restrict performance levels to low before we halt the SMC. |
716 | * On the other hand we are still in boot state when we do this | 716 | * On the other hand we are still in boot state when we do this |
717 | * so it would be pointless. | 717 | * so it would be pointless. |
718 | * If this assumption changes we have to revisit this table. | 718 | * If this assumption changes we have to revisit this table. |
719 | */ | 719 | */ |
720 | {NULL, tf_vega10_thermal_setup_fan_table}, | 720 | { .tableFunction = tf_vega10_thermal_setup_fan_table }, |
721 | {NULL, tf_vega10_thermal_start_smc_fan_control}, | 721 | { .tableFunction = tf_vega10_thermal_start_smc_fan_control }, |
722 | {NULL, NULL} | 722 | { } |
723 | }; | 723 | }; |
724 | 724 | ||
725 | static struct phm_master_table_header | 725 | static struct phm_master_table_header |
@@ -731,10 +731,10 @@ vega10_thermal_start_thermal_controller_master = { | |||
731 | 731 | ||
732 | static struct phm_master_table_item | 732 | static struct phm_master_table_item |
733 | vega10_thermal_set_temperature_range_master_list[] = { | 733 | vega10_thermal_set_temperature_range_master_list[] = { |
734 | {NULL, tf_vega10_thermal_disable_alert}, | 734 | { .tableFunction = tf_vega10_thermal_disable_alert }, |
735 | {NULL, tf_vega10_thermal_set_temperature_range}, | 735 | { .tableFunction = tf_vega10_thermal_set_temperature_range }, |
736 | {NULL, tf_vega10_thermal_enable_alert}, | 736 | { .tableFunction = tf_vega10_thermal_enable_alert }, |
737 | {NULL, NULL} | 737 | { } |
738 | }; | 738 | }; |
739 | 739 | ||
740 | struct phm_master_table_header | 740 | struct phm_master_table_header |