forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c
....@@ -1,24 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
34 * Copyright (c) 2014, Inforce Computing. All rights reserved.
45 *
56 * Author: Vinay Simha <vinaysimha@inforcecomputing.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License version 2 as published by
9
- * the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope that it will be useful, but WITHOUT
12
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
- * more details.
15
- *
16
- * You should have received a copy of the GNU General Public License along with
17
- * this program. If not, see <http://www.gnu.org/licenses/>.
187 */
198
209 #include <drm/drm_crtc.h>
21
-#include <drm/drm_crtc_helper.h>
10
+#include <drm/drm_probe_helper.h>
2211
2312 #include "mdp4_kms.h"
2413
....@@ -58,14 +47,7 @@
5847
5948 mode = adjusted_mode;
6049
61
- DBG("set mode: %d:\"%s\" %d %d %d %d %d %d %d %d %d %d 0x%x 0x%x",
62
- mode->base.id, mode->name,
63
- mode->vrefresh, mode->clock,
64
- mode->hdisplay, mode->hsync_start,
65
- mode->hsync_end, mode->htotal,
66
- mode->vdisplay, mode->vsync_start,
67
- mode->vsync_end, mode->vtotal,
68
- mode->type, mode->flags);
50
+ DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode));
6951
7052 ctrl_pol = 0;
7153 if (mode->flags & DRM_MODE_FLAG_NHSYNC)