Commit 376b6a1f authored by Allen Pais's avatar Allen Pais Committed by Alex Deucher

drivers:gpu:Use ARRAY_SIZE() for the size calculation of the array.

Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c3057281
...@@ -273,7 +273,7 @@ static const struct pctl_data pctl0_data[] = { ...@@ -273,7 +273,7 @@ static const struct pctl_data pctl0_data[] = {
{0x135, 0x12a810}, {0x135, 0x12a810},
{0x149, 0x7a82c} {0x149, 0x7a82c}
}; };
#define PCTL0_DATA_LEN (sizeof(pctl0_data)/sizeof(pctl0_data[0])) #define PCTL0_DATA_LEN (ARRAY_SIZE(pctl0_data))
#define PCTL0_RENG_EXEC_END_PTR 0x151 #define PCTL0_RENG_EXEC_END_PTR 0x151
#define PCTL0_STCTRL_REG_SAVE_RANGE0_BASE 0xa640 #define PCTL0_STCTRL_REG_SAVE_RANGE0_BASE 0xa640
...@@ -309,7 +309,7 @@ static const struct pctl_data pctl1_data[] = { ...@@ -309,7 +309,7 @@ static const struct pctl_data pctl1_data[] = {
{0x1f0, 0x5000a7f6}, {0x1f0, 0x5000a7f6},
{0x1f1, 0x5000a7e4} {0x1f1, 0x5000a7e4}
}; };
#define PCTL1_DATA_LEN (sizeof(pctl1_data)/sizeof(pctl1_data[0])) #define PCTL1_DATA_LEN (ARRAY_SIZE(pctl1_data))
#define PCTL1_RENG_EXEC_END_PTR 0x1f1 #define PCTL1_RENG_EXEC_END_PTR 0x1f1
#define PCTL1_STCTRL_REG_SAVE_RANGE0_BASE 0xa000 #define PCTL1_STCTRL_REG_SAVE_RANGE0_BASE 0xa000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment