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>
Este cometimento está contido em:

cometido por
Daniel Vetter

ascendente
0a0b457fbf
cometimento
53abb6794a
@@ -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;
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador