linux/drivers/gpu/drm/gma500
Jérémy Lefaure c7d234dc67 drm/gma500: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also,
it is useless to re-invent it.

Found with Coccinelle with the following semantic patch:
@r depends on (org || report)@
type T;
T[] E;
position p;
@@
(
 (sizeof(E)@p /sizeof(*E))
|
 (sizeof(E)@p /sizeof(E[...]))
|
 (sizeof(E)@p /sizeof(T))
)

Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171016023047.19145-1-jeremy.lefaure@lse.epita.fr
2017-10-16 11:29:05 +02:00
..
accel_2d.c drm: Nuke fb->depth 2016-12-15 14:55:33 +02:00
backlight.c
blitter.c
blitter.h
cdv_device.c
cdv_device.h
cdv_intel_crt.c drm/gma500: removed optional dummy encoder mode_fixup function. 2016-02-16 15:32:43 +01:00
cdv_intel_display.c drm/gma: removed optional dummy crtc mode_fixup function. 2016-03-04 17:58:34 +01:00
cdv_intel_dp.c drm/gma500: Remove null check before kfree 2017-08-31 09:24:15 +02:00
cdv_intel_hdmi.c GPU-DRM-GMA500: Delete unnecessary checks before two function calls 2016-07-22 11:31:42 +02:00
cdv_intel_lvds.c gpu: drm: drivers: Convert printk(KERN_<LEVEL> to pr_<level> 2017-03-01 09:44:11 +01:00
framebuffer.c drm: gma500: remove dead code and pointless local lut storage 2017-08-04 11:35:51 +02:00
framebuffer.h
gem.c drm/gma500: Use .dumb_map_offset and .dumb_destroy defaults 2017-08-16 20:13:11 +02:00
gem.h
gma_device.c
gma_device.h
gma_display.c drm: gma500: remove dead code and pointless local lut storage 2017-08-04 11:35:51 +02:00
gma_display.h drm: Add acquire ctx to ->gamma_set hook 2017-04-06 10:21:55 +02:00
gtt.c drm: use set_memory.h header 2017-05-08 17:15:14 -07:00
gtt.h
intel_bios.c
intel_bios.h
intel_gmbus.c drm/gma500: fix error path in gma_intel_setup_gmbus() 2016-02-10 08:25:42 +01:00
intel_i2c.c
Kconfig drm: fix compilations issues introduced by "drm: allow to use mmuless SoC" 2017-01-09 11:30:30 +01:00
Makefile drm/gma500: remove unneeded -Iinclude/drm compiler flag 2017-05-18 07:12:50 +02:00
mdfld_device.c
mdfld_dsi_dpi.c drm/gma500/mdfld_dsi: remove bogus if check 2016-04-08 13:42:31 +02:00
mdfld_dsi_dpi.h
mdfld_dsi_output.c drm: Remove display_info->min/max_(h|v)max 2016-08-16 18:49:41 +02:00
mdfld_dsi_output.h
mdfld_dsi_pkg_sender.c drm/gma500: fix potential NULL pointer dereference dereference 2017-08-18 09:10:46 +02:00
mdfld_dsi_pkg_sender.h
mdfld_intel_display.c drm: gma500: fix logic error 2017-09-06 08:39:55 +02:00
mdfld_output.c
mdfld_output.h
mdfld_tmd_vid.c
mdfld_tpo_vid.c gpu: drm: gma500: remove two more dead variable 2017-05-23 17:38:33 +02:00
mid_bios.c driver:gpu: return -ENOMEM on allocation failure. 2017-10-12 19:55:21 +02:00
mid_bios.h
mmu.c
mmu.h
oaktrail_crtc.c drm: Nuke fb->bits_per_pixel 2016-12-15 14:55:34 +02:00
oaktrail_device.c
oaktrail_hdmi_i2c.c
oaktrail_hdmi.c drm/gma500: removed optional dummy encoder mode_fixup function. 2016-02-16 15:32:43 +01:00
oaktrail_lvds_i2c.c
oaktrail_lvds.c gpu: drm: drivers: Convert printk(KERN_<LEVEL> to pr_<level> 2017-03-01 09:44:11 +01:00
oaktrail.h
opregion.c drm/gma500: remove unnecessary config_enabled() guard 2016-08-24 07:43:42 +02:00
opregion.h
power.c
power.h
psb_device.c
psb_device.h
psb_drv.c drm/gma500: Use .dumb_map_offset and .dumb_destroy defaults 2017-08-16 20:13:11 +02:00
psb_drv.h drm/gma500: Use .dumb_map_offset and .dumb_destroy defaults 2017-08-16 20:13:11 +02:00
psb_intel_display.c drm: gma500: remove dead code and pointless local lut storage 2017-08-04 11:35:51 +02:00
psb_intel_drv.h drm: gma500: remove dead code and pointless local lut storage 2017-08-04 11:35:51 +02:00
psb_intel_lvds.c drm/gma500/psb: Actually use VBT mode when it is found 2017-05-23 22:01:07 +02:00
psb_intel_modes.c drm: Remove superflous linux/fb.h includes 2016-08-12 10:41:39 +02:00
psb_intel_reg.h
psb_intel_sdvo_regs.h
psb_intel_sdvo.c drm/gma500: use ARRAY_SIZE 2017-10-16 11:29:05 +02:00
psb_irq.c
psb_irq.h
psb_lid.c
psb_reg.h
tc35876x-dsi-lvds.c gpu: drm: tc35876x: move header file out of I2C realm 2017-08-13 16:07:17 +02:00
tc35876x-dsi-lvds.h