forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/drm/omapdrm/dss/hdmi_wp.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * HDMI wrapper
34 *
45 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published by
8
- * the Free Software Foundation.
96 */
107
118 #define DSS_SUBSYS_NAME "HDMIWP"
....@@ -131,7 +128,7 @@
131128 }
132129
133130 void hdmi_wp_video_config_format(struct hdmi_wp_data *wp,
134
- struct hdmi_video_format *video_fmt)
131
+ const struct hdmi_video_format *video_fmt)
135132 {
136133 u32 l = 0;
137134
....@@ -144,7 +141,7 @@
144141 }
145142
146143 void hdmi_wp_video_config_interface(struct hdmi_wp_data *wp,
147
- struct videomode *vm)
144
+ const struct videomode *vm)
148145 {
149146 u32 r;
150147 bool vsync_inv, hsync_inv;
....@@ -164,7 +161,7 @@
164161 }
165162
166163 void hdmi_wp_video_config_timing(struct hdmi_wp_data *wp,
167
- struct videomode *vm)
164
+ const struct videomode *vm)
168165 {
169166 u32 timing_h = 0;
170167 u32 timing_v = 0;
....@@ -193,7 +190,7 @@
193190 }
194191
195192 void hdmi_wp_init_vid_fmt_timings(struct hdmi_video_format *video_fmt,
196
- struct videomode *vm, struct hdmi_config *param)
193
+ struct videomode *vm, const struct hdmi_config *param)
197194 {
198195 DSSDBG("Enter hdmi_wp_video_init_format\n");
199196