forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.h
....@@ -1,13 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
2
- *
3
- * This program is free software; you can redistribute it and/or modify
4
- * it under the terms of the GNU General Public License version 2 and
5
- * only version 2 as published by the Free Software Foundation.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
113 */
124
135 #ifndef _DPU_HW_LM_H
....@@ -61,18 +53,6 @@
6153 void (*setup_border_color)(struct dpu_hw_mixer *ctx,
6254 struct dpu_mdss_color *color,
6355 u8 border_en);
64
- /**
65
- * setup_gc : enable/disable gamma correction feature
66
- */
67
- void (*setup_gc)(struct dpu_hw_mixer *mixer,
68
- void *cfg);
69
-
70
- /* setup_misr: enables/disables MISR in HW register */
71
- void (*setup_misr)(struct dpu_hw_mixer *ctx,
72
- bool enable, u32 frame_count);
73
-
74
- /* collect_misr: reads and stores MISR data from HW register */
75
- u32 (*collect_misr)(struct dpu_hw_mixer *ctx);
7656 };
7757
7858 struct dpu_hw_mixer {
....@@ -111,7 +91,7 @@
11191 */
11292 struct dpu_hw_mixer *dpu_hw_lm_init(enum dpu_lm idx,
11393 void __iomem *addr,
114
- struct dpu_mdss_cfg *m);
94
+ const struct dpu_mdss_cfg *m);
11595
11696 /**
11797 * dpu_hw_lm_destroy(): Destroys layer mixer driver context