diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-08-21 20:45:28 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-08-26 11:19:30 +0200 |
commit | 53abb6794ac022e6c0b5f239fc26d99ea054ee86 (patch) | |
tree | 35aa51e5164e088e581e3038be26fa07def0306b /drivers/gpu/drm/i915/intel_sdvo.c | |
parent | 0a0b457fbf765d0b98fa48495b9bb7901eb8b091 (diff) | |
download | linux-53abb6794ac022e6c0b5f239fc26d99ea054ee86.tar.gz linux-53abb6794ac022e6c0b5f239fc26d99ea054ee86.tar.bz2 linux-53abb6794ac022e6c0b5f239fc26d99ea054ee86.zip |
drm/i915: Use ARRAY_SIZE() instead of hand rolling it
A couple of hand rolled ARRAY_SIZE()s caught my eye. Get rid of them.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sdvo.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sdvo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index c98098e884cc..25d74d23e85e 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c @@ -63,7 +63,7 @@ static const char *tv_format_names[] = { "SECAM_60" }; -#define TV_FORMAT_NUM (sizeof(tv_format_names) / sizeof(*tv_format_names)) +#define TV_FORMAT_NUM ARRAY_SIZE(tv_format_names) struct intel_sdvo { struct intel_encoder base; |