aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/drm2/radeon/radeon_legacy_tv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/drm2/radeon/radeon_legacy_tv.c')
-rw-r--r--sys/dev/drm2/radeon/radeon_legacy_tv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm2/radeon/radeon_legacy_tv.c b/sys/dev/drm2/radeon/radeon_legacy_tv.c
index 5311a48a56ec..c124a74eb02b 100644
--- a/sys/dev/drm2/radeon/radeon_legacy_tv.c
+++ b/sys/dev/drm2/radeon/radeon_legacy_tv.c
@@ -232,7 +232,7 @@ static const struct radeon_tv_mode_constants available_tv_modes[] = {
},
};
-#define N_AVAILABLE_MODES DRM_ARRAY_SIZE(available_tv_modes)
+#define N_AVAILABLE_MODES ARRAY_SIZE(available_tv_modes)
static const struct radeon_tv_mode_constants *radeon_legacy_tv_get_std_mode(struct radeon_encoder *radeon_encoder,
uint16_t *pll_ref_freq)
@@ -647,7 +647,7 @@ void radeon_legacy_tv_mode_set(struct drm_encoder *encoder,
if (flicker_removal < 3)
flicker_removal = 3;
- for (i = 0; i < DRM_ARRAY_SIZE(SLOPE_limit); ++i) {
+ for (i = 0; i < ARRAY_SIZE(SLOPE_limit); ++i) {
if (flicker_removal == SLOPE_limit[i])
break;
}