drm/msm/dpu: move struct dpu_hw_blk definition to dpu_hw_utils.h
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 1 Jun 2022 16:13:49 +0000 (19:13 +0300)
committerRob Clark <robdclark@chromium.org>
Wed, 6 Jul 2022 15:43:54 +0000 (08:43 -0700)
There is little point in having a separate header just for a single
opaque struct definition. Drop it now and move the struct to the
dpu_hw_util.h header.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/488016/
Link: https://lore.kernel.org/r/20220601161349.1517667-5-dmitry.baryshkov@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
12 files changed:
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_blk.h [deleted file]
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_merge3d.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h

index af03277a3e5aac0fdf449f5f23144cf73587c7ff..9b67645c25741372b839827334db51fdfce10647 100644 (file)
@@ -13,7 +13,6 @@
 #include <drm/drm_crtc.h>
 #include "dpu_kms.h"
 #include "dpu_core_perf.h"
-#include "dpu_hw_blk.h"
 
 #define DPU_CRTC_NAME_SIZE     12
 
index d301070cd4a1e73a254ce8f80b794ae7ea6074cb..a3480c3f6d33504318ff6eb6079ba6341f3a2ba9 100644 (file)
@@ -12,7 +12,6 @@
 #include "dpu_hw_top.h"
 #include "dpu_hw_wb.h"
 #include "dpu_hw_lm.h"
-#include "dpu_hw_blk.h"
 #include "dpu_hw_merge3d.h"
 #include "dpu_hw_interrupts.h"
 #include "dpu_core_irq.h"
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_blk.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_blk.h
deleted file mode 100644 (file)
index 52e92f3..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
- */
-
-#ifndef _DPU_HW_BLK_H
-#define _DPU_HW_BLK_H
-
-#include <linux/types.h>
-#include <linux/list.h>
-
-struct dpu_hw_blk;
-
-
-/**
- * struct dpu_hw_blk - definition of hardware block object
- * @list: list of hardware blocks
- * @type: hardware block type
- * @id: instance id
- * @refcount: reference/usage count
- */
-struct dpu_hw_blk {
-       /* opaque */
-};
-
-#endif /*_DPU_HW_BLK_H */
index 5755307089b52d31f58009593dff209522ede8ef..7d9ad6a3f9f6ab3cb0d99ebfecd84753957e78c1 100644 (file)
@@ -10,7 +10,6 @@
 #include "dpu_hw_util.h"
 #include "dpu_hw_catalog.h"
 #include "dpu_hw_sspp.h"
-#include "dpu_hw_blk.h"
 
 /**
  * dpu_ctl_mode_sel: Interface mode selection
index 7fa189cfcb065f90b866b1ab1488f843b37e2cb4..05ecfdfac93b7d146aeef1b84653cfa3be5ab773 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef _DPU_HW_DSPP_H
 #define _DPU_HW_DSPP_H
 
-#include "dpu_hw_blk.h"
-
 struct dpu_hw_dspp;
 
 /**
index 8d0e7b5092602f2a16f9a7b1479023a57722cc87..643dd10bc0306a02277d0dc01316fa0c2f44b8a8 100644 (file)
@@ -10,7 +10,6 @@
 #include "dpu_hw_catalog.h"
 #include "dpu_hw_mdss.h"
 #include "dpu_hw_util.h"
-#include "dpu_hw_blk.h"
 
 struct dpu_hw_intf;
 
index d8052fb2d5da61b8880aedbce3429e27eaa37ffa..652ddfdedec375b04f09fafd4e62a93360e70763 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "dpu_hw_mdss.h"
 #include "dpu_hw_util.h"
-#include "dpu_hw_blk.h"
 
 struct dpu_hw_mixer;
 
index 870bdb14613e4537f7fce9693ec210ad8e3c2db5..81fd1d5f718e7862391ef8d71102a849edbb36be 100644 (file)
@@ -8,7 +8,6 @@
 #include "dpu_hw_catalog.h"
 #include "dpu_hw_mdss.h"
 #include "dpu_hw_util.h"
-#include "dpu_hw_blk.h"
 
 struct dpu_hw_merge_3d;
 
index 12758468d9ca19689ae0ff1a828ff396b2b9e40d..c00223441d99020ae85bd30c2174a5c7904a22e0 100644 (file)
@@ -8,7 +8,6 @@
 #include "dpu_hw_catalog.h"
 #include "dpu_hw_mdss.h"
 #include "dpu_hw_util.h"
-#include "dpu_hw_blk.h"
 
 #define DITHER_MATRIX_SZ 16
 
index 7f7338fcddeb68ceec7cb83032793620fab7f340..78b1bc9e004fdbd0333accc149d6806f0c1e93be 100644 (file)
@@ -8,7 +8,6 @@
 #include "dpu_hw_catalog.h"
 #include "dpu_hw_mdss.h"
 #include "dpu_hw_util.h"
-#include "dpu_hw_blk.h"
 #include "dpu_formats.h"
 
 struct dpu_hw_pipe;
index 3aa10c89ca1b5100a9dc5f21245d0622dc076d12..a1a9e44bed36b102ee035833023a9adba03205ab 100644 (file)
@@ -8,7 +8,6 @@
 #include "dpu_hw_catalog.h"
 #include "dpu_hw_mdss.h"
 #include "dpu_hw_util.h"
-#include "dpu_hw_blk.h"
 
 struct dpu_hw_mdp;
 
index b392e5c4f89581a34e37efe2dd30d0061031197e..27f4c39e35ab3b70a83c33235835692c05182b05 100644 (file)
@@ -31,6 +31,13 @@ struct dpu_hw_blk_reg_map {
        u32 log_mask;
 };
 
+/**
+ * struct dpu_hw_blk - opaque hardware block object
+ */
+struct dpu_hw_blk {
+       /* opaque */
+};
+
 /**
  * struct dpu_hw_scaler3_de_cfg : QSEEDv3 detail enhancer configuration
  * @enable:         detail enhancer enable/disable