.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2015 Freescale Semiconductor, Inc. |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #include <linux/regmap.h> |
---|
13 | 9 | |
---|
14 | | -#include <drm/drmP.h> |
---|
15 | 10 | #include <drm/drm_atomic_helper.h> |
---|
16 | 11 | #include <drm/drm_crtc.h> |
---|
17 | | -#include <drm/drm_crtc_helper.h> |
---|
18 | 12 | #include <drm/drm_fb_cma_helper.h> |
---|
| 13 | +#include <drm/drm_fourcc.h> |
---|
19 | 14 | #include <drm/drm_gem_cma_helper.h> |
---|
20 | 15 | #include <drm/drm_plane_helper.h> |
---|
| 16 | +#include <drm/drm_probe_helper.h> |
---|
21 | 17 | |
---|
22 | 18 | #include "fsl_dcu_drm_drv.h" |
---|
23 | 19 | #include "fsl_dcu_drm_plane.h" |
---|
.. | .. |
---|
105 | 101 | break; |
---|
106 | 102 | case DRM_FORMAT_ARGB8888: |
---|
107 | 103 | alpha = DCU_LAYER_AB_WHOLE_FRAME; |
---|
108 | | - /* fall-through */ |
---|
| 104 | + fallthrough; |
---|
109 | 105 | case DRM_FORMAT_XRGB8888: |
---|
110 | 106 | bpp = FSL_DCU_ARGB8888; |
---|
111 | 107 | break; |
---|
112 | 108 | case DRM_FORMAT_ARGB4444: |
---|
113 | 109 | alpha = DCU_LAYER_AB_WHOLE_FRAME; |
---|
114 | | - /* fall-through */ |
---|
| 110 | + fallthrough; |
---|
115 | 111 | case DRM_FORMAT_XRGB4444: |
---|
116 | 112 | bpp = FSL_DCU_ARGB4444; |
---|
117 | 113 | break; |
---|
118 | 114 | case DRM_FORMAT_ARGB1555: |
---|
119 | 115 | alpha = DCU_LAYER_AB_WHOLE_FRAME; |
---|
120 | | - /* fall-through */ |
---|
| 116 | + fallthrough; |
---|
121 | 117 | case DRM_FORMAT_XRGB1555: |
---|
122 | 118 | bpp = FSL_DCU_ARGB1555; |
---|
123 | 119 | break; |
---|