mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 21:29:49 +07:00
c7d234dc67
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 |
||
---|---|---|
.. | ||
accel_2d.c | ||
backlight.c | ||
blitter.c | ||
blitter.h | ||
cdv_device.c | ||
cdv_device.h | ||
cdv_intel_crt.c | ||
cdv_intel_display.c | ||
cdv_intel_dp.c | ||
cdv_intel_hdmi.c | ||
cdv_intel_lvds.c | ||
framebuffer.c | ||
framebuffer.h | ||
gem.c | ||
gem.h | ||
gma_device.c | ||
gma_device.h | ||
gma_display.c | ||
gma_display.h | ||
gtt.c | ||
gtt.h | ||
intel_bios.c | ||
intel_bios.h | ||
intel_gmbus.c | ||
intel_i2c.c | ||
Kconfig | ||
Makefile | ||
mdfld_device.c | ||
mdfld_dsi_dpi.c | ||
mdfld_dsi_dpi.h | ||
mdfld_dsi_output.c | ||
mdfld_dsi_output.h | ||
mdfld_dsi_pkg_sender.c | ||
mdfld_dsi_pkg_sender.h | ||
mdfld_intel_display.c | ||
mdfld_output.c | ||
mdfld_output.h | ||
mdfld_tmd_vid.c | ||
mdfld_tpo_vid.c | ||
mid_bios.c | ||
mid_bios.h | ||
mmu.c | ||
mmu.h | ||
oaktrail_crtc.c | ||
oaktrail_device.c | ||
oaktrail_hdmi_i2c.c | ||
oaktrail_hdmi.c | ||
oaktrail_lvds_i2c.c | ||
oaktrail_lvds.c | ||
oaktrail.h | ||
opregion.c | ||
opregion.h | ||
power.c | ||
power.h | ||
psb_device.c | ||
psb_device.h | ||
psb_drv.c | ||
psb_drv.h | ||
psb_intel_display.c | ||
psb_intel_drv.h | ||
psb_intel_lvds.c | ||
psb_intel_modes.c | ||
psb_intel_reg.h | ||
psb_intel_sdvo_regs.h | ||
psb_intel_sdvo.c | ||
psb_irq.c | ||
psb_irq.h | ||
psb_lid.c | ||
psb_reg.h | ||
tc35876x-dsi-lvds.c | ||
tc35876x-dsi-lvds.h |