Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: use NULL instead of zero in clearstate headers

Signed-off-by: Michele Curti <michele.curti@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Michele CURTI and committed by
Alex Deucher
d148f9e0 12432354

+8 -8
+4 -4
drivers/gpu/drm/radeon/clearstate_cayman.h
··· 1050 1050 {SECT_CONTEXT_def_5, 0x0000a29e, 5 }, 1051 1051 {SECT_CONTEXT_def_6, 0x0000a2a5, 56 }, 1052 1052 {SECT_CONTEXT_def_7, 0x0000a2de, 290 }, 1053 - { 0, 0, 0 } 1053 + { NULL, 0, 0 } 1054 1054 }; 1055 1055 static const u32 SECT_CLEAR_def_1[] = 1056 1056 { ··· 1061 1061 static const struct cs_extent_def SECT_CLEAR_defs[] = 1062 1062 { 1063 1063 {SECT_CLEAR_def_1, 0x0000ffc0, 3 }, 1064 - { 0, 0, 0 } 1064 + { NULL, 0, 0 } 1065 1065 }; 1066 1066 static const u32 SECT_CTRLCONST_def_1[] = 1067 1067 { ··· 1071 1071 static const struct cs_extent_def SECT_CTRLCONST_defs[] = 1072 1072 { 1073 1073 {SECT_CTRLCONST_def_1, 0x0000f3fc, 2 }, 1074 - { 0, 0, 0 } 1074 + { NULL, 0, 0 } 1075 1075 }; 1076 1076 static const struct cs_section_def cayman_cs_data[] = { 1077 1077 { SECT_CONTEXT_defs, SECT_CONTEXT }, 1078 1078 { SECT_CLEAR_defs, SECT_CLEAR }, 1079 1079 { SECT_CTRLCONST_defs, SECT_CTRLCONST }, 1080 - { 0, SECT_NONE } 1080 + { NULL, SECT_NONE } 1081 1081 };
+2 -2
drivers/gpu/drm/radeon/clearstate_ci.h
··· 936 936 {ci_SECT_CONTEXT_def_5, 0x0000a2a0, 2 }, 937 937 {ci_SECT_CONTEXT_def_6, 0x0000a2a3, 1 }, 938 938 {ci_SECT_CONTEXT_def_7, 0x0000a2a5, 233 }, 939 - { 0, 0, 0 } 939 + { NULL, 0, 0 } 940 940 }; 941 941 static const struct cs_section_def ci_cs_data[] = { 942 942 { ci_SECT_CONTEXT_defs, SECT_CONTEXT }, 943 - { 0, SECT_NONE } 943 + { NULL, SECT_NONE } 944 944 };
+2 -2
drivers/gpu/drm/radeon/clearstate_si.h
··· 933 933 {si_SECT_CONTEXT_def_5, 0x0000a2a1, 1 }, 934 934 {si_SECT_CONTEXT_def_6, 0x0000a2a3, 1 }, 935 935 {si_SECT_CONTEXT_def_7, 0x0000a2a5, 233 }, 936 - { 0, 0, 0 } 936 + { NULL, 0, 0 } 937 937 }; 938 938 static const struct cs_section_def si_cs_data[] = { 939 939 { si_SECT_CONTEXT_defs, SECT_CONTEXT }, 940 - { 0, SECT_NONE } 940 + { NULL, SECT_NONE } 941 941 };