forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c
....@@ -1,23 +1,19 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2015 Freescale Semiconductor, Inc.
34 *
45 * Freescale DCU drm device driver
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
106 */
117
128 #include <linux/regmap.h>
139
14
-#include <drm/drmP.h>
1510 #include <drm/drm_atomic_helper.h>
1611 #include <drm/drm_crtc.h>
17
-#include <drm/drm_crtc_helper.h>
1812 #include <drm/drm_fb_cma_helper.h>
13
+#include <drm/drm_fourcc.h>
1914 #include <drm/drm_gem_cma_helper.h>
2015 #include <drm/drm_plane_helper.h>
16
+#include <drm/drm_probe_helper.h>
2117
2218 #include "fsl_dcu_drm_drv.h"
2319 #include "fsl_dcu_drm_plane.h"
....@@ -105,19 +101,19 @@
105101 break;
106102 case DRM_FORMAT_ARGB8888:
107103 alpha = DCU_LAYER_AB_WHOLE_FRAME;
108
- /* fall-through */
104
+ fallthrough;
109105 case DRM_FORMAT_XRGB8888:
110106 bpp = FSL_DCU_ARGB8888;
111107 break;
112108 case DRM_FORMAT_ARGB4444:
113109 alpha = DCU_LAYER_AB_WHOLE_FRAME;
114
- /* fall-through */
110
+ fallthrough;
115111 case DRM_FORMAT_XRGB4444:
116112 bpp = FSL_DCU_ARGB4444;
117113 break;
118114 case DRM_FORMAT_ARGB1555:
119115 alpha = DCU_LAYER_AB_WHOLE_FRAME;
120
- /* fall-through */
116
+ fallthrough;
121117 case DRM_FORMAT_XRGB1555:
122118 bpp = FSL_DCU_ARGB1555;
123119 break;