]> www.infradead.org Git - users/willy/linux.git/commitdiff
drm/exynos/decon: Move headers from global to local place
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 26 Dec 2017 13:07:18 +0000 (14:07 +0100)
committerInki Dae <inki.dae@samsung.com>
Mon, 1 Jan 2018 23:38:00 +0000 (08:38 +0900)
The DECON headers contain only defines for registers.  There are no
other drivers using them so this should be put locally to the Exynos DRM
driver.  Keeping headers local helps managing the code.

Suggested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos5433_drm_decon.c
drivers/gpu/drm/exynos/exynos7_drm_decon.c
drivers/gpu/drm/exynos/regs-decon5433.h [moved from include/video/exynos5433_decon.h with 100% similarity]
drivers/gpu/drm/exynos/regs-decon7.h [moved from include/video/exynos7_decon.h with 99% similarity]

index 1d509a815d6868a8f907f1b94ad91d3abc1052f3..1c330f2a7a5d11b09b3dbdf4a86cc4839788aa9a 100644 (file)
 #include <linux/pm_runtime.h>
 #include <linux/regmap.h>
 
-#include <video/exynos5433_decon.h>
-
 #include "exynos_drm_drv.h"
 #include "exynos_drm_crtc.h"
 #include "exynos_drm_fb.h"
 #include "exynos_drm_plane.h"
 #include "exynos_drm_iommu.h"
+#include "regs-decon5433.h"
 
 #define DSD_CFG_MUX 0x1004
 #define DSD_CFG_MUX_TE_UNMASK_GLOBAL BIT(13)
index 615efcf7782a130dce3c06975a611323b12dcf5e..3931d5e33fe07aa77ec5a39c30875f9ac0b8edd6 100644 (file)
 
 #include <video/of_display_timing.h>
 #include <video/of_videomode.h>
-#include <video/exynos7_decon.h>
 
 #include "exynos_drm_crtc.h"
 #include "exynos_drm_plane.h"
 #include "exynos_drm_drv.h"
 #include "exynos_drm_fb.h"
 #include "exynos_drm_iommu.h"
+#include "regs-decon7.h"
 
 /*
  * DECON stands for Display and Enhancement controller.
similarity index 99%
rename from include/video/exynos7_decon.h
rename to drivers/gpu/drm/exynos/regs-decon7.h
index a62b11b613f65225577b1d88206d5f256d22a827..339ea1007ff54d2b783a41cf3ed8a06c74f427a0 100644 (file)
@@ -1,5 +1,4 @@
-/* include/video/exynos7_decon.h
- *
+/*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
  * Author: Ajay Kumar <ajaykumar.rs@samsung.com>
  *