All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Cc: Dave Airlie <airlied@redhat.com>, Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: [PATCH 07/17] drm/i915/tv: fix open-coded ARRAY_SIZE.
Date: Sat, 21 Apr 2012 17:35:51 +0100	[thread overview]
Message-ID: <1335026161-15054-8-git-send-email-chris@chris-wilson.co.uk> (raw)
In-Reply-To: <1335026161-15054-1-git-send-email-chris@chris-wilson.co.uk>

From: Dave Airlie <airlied@redhat.com>

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 drivers/gpu/drm/i915/intel_tv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c
index ca12c70..67f444d 100644
--- a/drivers/gpu/drm/i915/intel_tv.c
+++ b/drivers/gpu/drm/i915/intel_tv.c
@@ -811,7 +811,7 @@ intel_tv_mode_lookup(const char *tv_format)
 {
 	int i;
 
-	for (i = 0; i < sizeof(tv_modes) / sizeof(tv_modes[0]); i++) {
+	for (i = 0; i < ARRAY_SIZE(tv_modes); i++) {
 		const struct tv_mode *tv_mode = &tv_modes[i];
 
 		if (!strcmp(tv_format, tv_mode->name))
-- 
1.7.10

  parent reply	other threads:[~2012-04-21 16:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-21 16:35 [RFC] Preserve stolen objects across initialisation Chris Wilson
2012-04-21 16:35 ` [PATCH 01/17] drm/i915: Remove the list of pinned inactive objects Chris Wilson
2012-04-21 16:35 ` [PATCH 02/17] drm/i915: Remove the deferred-free list Chris Wilson
2012-04-21 16:35 ` [PATCH 03/17] drm/i915: Track unbound pages Chris Wilson
2012-04-21 16:35 ` [PATCH 04/17] drm/i915: Only pwrite through the GTT if there is space in the aperture Chris Wilson
2012-04-21 16:35 ` [PATCH 05/17] drm/i915: Try harder to allocate an mmap_offset Chris Wilson
2012-04-21 16:35 ` [PATCH 06/17] drm/i915/debugfs: Show (count, size) of purgeable objects in i915_gem_objects Chris Wilson
2012-04-21 16:35 ` Chris Wilson [this message]
2012-04-21 16:35 ` [PATCH 08/17] drm: Introduce drm_mm_create_block() Chris Wilson
2012-04-21 16:35 ` [PATCH 09/17] drm/i915: Split the stolen handling for GEM out of i915_dma.c Chris Wilson
2012-04-21 16:35 ` [PATCH 10/17] drm/i915: Move GEM initialisation from i915_dma.c to i915_gem.c Chris Wilson
2012-04-21 16:35 ` [PATCH 11/17] drm/i915: Avoid clearing preallocated regions from the GTT Chris Wilson
2012-04-21 16:35 ` [PATCH 12/17] drm/i915: Always use the scatterlists if available for GTT insertion Chris Wilson
2012-04-21 16:35 ` [PATCH 13/17] drm/i915: Tidy handling of the scatterlist by ppgtt Chris Wilson
2012-04-21 16:35 ` [PATCH 14/17] drm/i915: Delay allocation of stolen space for FBC Chris Wilson
2012-04-21 16:35 ` [PATCH 15/17] drm/i915: Introduce i915_gem_object_create_for_stolen() Chris Wilson
2012-04-21 16:36 ` [PATCH 16/17] drm/i915: Split the framebuffer_info creation into a separate routine Chris Wilson
2012-04-21 16:36 ` [PATCH 17/17] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon Chris Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1335026161-15054-8-git-send-email-chris@chris-wilson.co.uk \
    --to=chris@chris-wilson.co.uk \
    --cc=airlied@redhat.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.