diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-06-28 13:54:56 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-07-20 17:14:25 +0200 |
commit | 04ad327f277ec3bc3c05f5a5c19d58600882d38e (patch) | |
tree | 662c4326b43397fd9019000afabc3524d9f08a2d /drivers/gpu/drm/i915/intel_tv.c | |
parent | drm: drm_edid: use ARRAY_SIZE (diff) | |
download | linux-04ad327f277ec3bc3c05f5a5c19d58600882d38e.tar.xz linux-04ad327f277ec3bc3c05f5a5c19d58600882d38e.zip |
drm: i915: use ARRAY_SIZE
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_tv.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_tv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index 6d553c29d106..d2d4e4045ca9 100644 --- a/drivers/gpu/drm/i915/intel_tv.c +++ b/drivers/gpu/drm/i915/intel_tv.c @@ -1424,7 +1424,7 @@ intel_tv_get_modes(struct drm_connector *connector) int j, count = 0; u64 tmp; - for (j = 0; j < sizeof(input_res_table) / sizeof(input_res_table[0]); + for (j = 0; j < ARRAY_SIZE(input_res_table); j++) { struct input_res *input = &input_res_table[j]; unsigned int hactive_s = input->w; |