Skip to content

Commit

Permalink
video: Remove <common.h> and add needed includes
Browse files Browse the repository at this point in the history
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Reviewed-by: Peter Robinson <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
  • Loading branch information
trini committed May 7, 2024
1 parent 12a8b0d commit a295557
Show file tree
Hide file tree
Showing 111 changed files with 10 additions and 110 deletions.
1 change: 0 additions & 1 deletion drivers/video/anx9804.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* interface for driving eDP TFT displays.
*/

#include <common.h>
#include <i2c.h>
#include <linux/delay.h>
#include "anx98xx-edp.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/video/atmel_hlcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2012 Atmel Corporation
*/

#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/atmel_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Copyright (C) 2007 Atmel Corporation
*/

#include <common.h>
#include <atmel_lcd.h>
#include <dm.h>
#include <fdtdec.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/backlight-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT

#include <common.h>
#include <dm.h>
#include <backlight.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/video/backlight_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Author: Patrick Delaunay <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <backlight.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* (C) Copyright 2012 Stephen Warren
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <video.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* BMP handling routines
*/

#include <common.h>
#include <bmp_layout.h>
#include <command.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/bochs.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_VIDEO

#include <common.h>
#include <dm.h>
#include <log.h>
#include <pci.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/bridge/anx6345.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2017 Vasily Khoruzhick <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/bridge/ps862x.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Simon Glass <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/bridge/ptn3460.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Written by Simon Glass <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <log.h>
#include <video_bridge.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/bridge/ssd2825.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
*/

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/bridge/video-bridge-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define LOG_CATEGORY UCLASS_VIDEO_BRIDGE

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <edid.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/broadwell_igd.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* Copyright (C) 2016 Google, Inc
*/

#include <common.h>
#include <bios_emul.h>
#include <bootstage.h>
#include <dm.h>
#include <init.h>
#include <log.h>
#include <time.h>
#include <vesa.h>
#include <video.h>
#include <asm/cpu.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/console_normal.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
*/

#include <common.h>
#include <charset.h>
#include <dm.h>
#include <video.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/console_rotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
*/

#include <common.h>
#include <charset.h>
#include <dm.h>
#include <video.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/console_truetype.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2016 Google, Inc
*/

#include <common.h>
#include <abuf.h>
#include <dm.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/coreboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2016, Bin Meng <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <init.h>
#include <vesa.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/display-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define LOG_CATEGORY UCLASS_DISPLAY

#include <common.h>
#include <dm.h>
#include <display.h>
#include <edid.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/dsi-host-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#define LOG_CATEGORY UCLASS_DSI_HOST

#include <common.h>
#include <dm.h>
#include <dsi_host.h>

Expand Down
3 changes: 2 additions & 1 deletion drivers/video/dw_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
* Copyright 2017 Jernej Skrabec <[email protected]>
*/

#include <common.h>
#include <fdtdec.h>
#include <log.h>
#include <asm/io.h>
#include <i2c.h>
#include <media_bus_format.h>
#include <time.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include "dw_hdmi.h"

struct tmds_n_cts {
Expand Down
1 change: 0 additions & 1 deletion drivers/video/dw_mipi_dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c.
*/

#include <common.h>
#include <clk.h>
#include <dsi_host.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#define LOG_CATEGORY LOGC_EFI

#include <common.h>
#include <dm.h>
#include <efi_api.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/endeavoru-panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
*/

#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <panel.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/exynos/exynos_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Author: Donghwa Lee <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <display.h>
#include <fdtdec.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/exynos/exynos_dp_lowlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

#include <config.h>
#include <common.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/err.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/exynos/exynos_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

#include <config.h>
#include <common.h>
#include <display.h>
#include <div64.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/exynos/exynos_mipi_dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Donghwa Lee <[email protected]>
*/

#include <common.h>
#include <log.h>
#include <malloc.h>
#include <fdtdec.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/exynos/exynos_mipi_dsi_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Donghwa Lee <[email protected]>
*/

#include <common.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/err.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Donghwa Lee <[email protected]>
*/

#include <common.h>
#include <asm/arch/dsim.h>
#include <asm/arch/mipi_dsim.h>
#include <asm/arch/power.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/himax-hx8394.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/*
* Copyright (C) 2022 Ondrej Jirman <[email protected]>
*/
#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <mipi_dsi.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/hitachi_tx18d42vm_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* (C) Copyright 2015 Hans de Goede <[email protected]>
*/

#include <common.h>
#include <malloc.h>
#include <linux/delay.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/video/hx8238d.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*
*/

#include <common.h>
#include <dm.h>
#include <panel.h>
#include <spi.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/ihs_video_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Dirk Eibach, Guntermann & Drunck GmbH, [email protected]
*/

#include <common.h>
#include <display.h>
#include <dm.h>
#include <log.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/imx/ipu_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/* #define DEBUG */
#include <common.h>
#include <config.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/types.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/imx/ipu_disp.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

/* #define DEBUG */

#include <common.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/types.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/imx/mxc_ipuv3_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
*/

#include <common.h>
#include <log.h>
#include <part.h>
#include <asm/cache.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/ivybridge_igd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (C) 2016 Google, Inc
*/

#include <common.h>
#include <bios_emul.h>
#include <dm.h>
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/lm3533_backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT

#include <backlight.h>
#include <common.h>
#include <dm.h>
#include <i2c.h>
#include <log.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/logicore_dp_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Dirk Eibach, Guntermann & Drunck GmbH, [email protected]
*/

#include <common.h>
#include <clk.h>
#include <display.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/mali_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*
*/
#define DEBUG
#include <common.h>
#include <malloc.h>
#include <video.h>
#include <dm.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/mcde_simple.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/* Copyright (C) 2019 Stephan Gerhold */

#include <common.h>
#include <dm.h>
#include <log.h>
#include <video.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/meson/meson_canvas.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Neil Armstrong <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <asm/io.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/video/meson/meson_dw_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Author: Jorge Ramirez-Ortiz <[email protected]>
*/

#include <common.h>
#include <display.h>
#include <dm.h>
#include <edid.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/meson/meson_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Neil Armstrong <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <asm/io.h>
#include <linux/bitfield.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/meson/meson_vclk.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Neil Armstrong <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <edid.h>
#include <linux/bitops.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/meson/meson_venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Neil Armstrong <[email protected]>
*/

#include <common.h>
#include <dm.h>
#include <edid.h>
#include <fdtdec.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/video/meson/meson_vpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Author: Neil Armstrong <[email protected]>
*/

#include <common.h>
#include <display.h>
#include <dm.h>
#include <efi_loader.h>
Expand Down
Loading

0 comments on commit a295557

Please sign in to comment.