Skip to content

Commit 233fd4e

Browse files
thierryredingdanvet
authored andcommitted
drm/plane: Fix a couple of checkpatch warnings
Code should be indented using tabs rather than spaces (see CodingStyle) and the canonical form to declare a constant static variable is using "static const" rather than "const static". Fixes the following warnings from checkpatch: $ scripts/checkpatch.pl -f drivers/gpu/drm/drm_plane_helper.c WARNING: storage class should be at the beginning of the declaration #40: FILE: drivers/gpu/drm/drm_plane_helper.c:40: +const static uint32_t safe_modeset_formats[] = { WARNING: please, no spaces at the start of a line #41: FILE: drivers/gpu/drm/drm_plane_helper.c:41: + DRM_FORMAT_XRGB8888,$ WARNING: please, no spaces at the start of a line #42: FILE: drivers/gpu/drm/drm_plane_helper.c:42: + DRM_FORMAT_ARGB8888,$ Signed-off-by: Thierry Reding <[email protected]> Reviewed-by: Matt Roper <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
1 parent f220e62 commit 233fd4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/drm_plane_helper.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
* creating the primary plane. However drivers that still call
3838
* drm_plane_init() will use this minimal format list as the default.
3939
*/
40-
const static uint32_t safe_modeset_formats[] = {
41-
DRM_FORMAT_XRGB8888,
42-
DRM_FORMAT_ARGB8888,
40+
static const uint32_t safe_modeset_formats[] = {
41+
DRM_FORMAT_XRGB8888,
42+
DRM_FORMAT_ARGB8888,
4343
};
4444

4545
/*

0 commit comments

Comments
 (0)