[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220904203818.16775-1-jingyuwang_vip@163.com>
Date: Mon, 5 Sep 2022 04:38:18 +0800
From: Jingyu Wang <jingyuwang_vip@....com>
To: maarten.lankhorst@...ux.intel.com, mripard@...nel.org,
tzimmermann@...e.de, airlied@...ux.ie, daniel@...ll.ch
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Jingyu Wang <jingyuwang_vip@....com>
Subject: [PATCH] drm/print: cleanup coding style in drm_print.h
Fix everything checkpatch.pl complained about in drm_print.h
Signed-off-by: Jingyu Wang <jingyuwang_vip@....com>
---
include/drm/drm_print.h | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
index 22fabdeed297..4332fbeb76a8 100644
--- a/include/drm/drm_print.h
+++ b/include/drm/drm_print.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 Red Hat
*
@@ -103,7 +104,7 @@ __printf(2, 0)
* @va: the va_list
*/
static inline void
-drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va)
+drm_vprintf(struct drm_printer *p, const char *fmt, va_list * va)
{
struct va_format vaf = { .fmt = fmt, .va = va };
@@ -426,16 +427,16 @@ void drm_dev_dbg(const struct device *dev, enum drm_debug_category category,
#define drm_info(drm, fmt, ...) \
- __drm_printk((drm), info,, fmt, ##__VA_ARGS__)
+ __drm_printk((drm), info, fmt, ##__VA_ARGS__)
#define drm_notice(drm, fmt, ...) \
- __drm_printk((drm), notice,, fmt, ##__VA_ARGS__)
+ __drm_printk((drm), notice, fmt, ##__VA_ARGS__)
#define drm_warn(drm, fmt, ...) \
- __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
+ __drm_printk((drm), warn, fmt, ##__VA_ARGS__)
#define drm_err(drm, fmt, ...) \
- __drm_printk((drm), err,, "*ERROR* " fmt, ##__VA_ARGS__)
+ __drm_printk((drm), err, "*ERROR* " fmt, ##__VA_ARGS__)
#define drm_info_once(drm, fmt, ...) \
base-commit: e47eb90a0a9ae20b82635b9b99a8d0979b757ad8
prerequisite-patch-id: f039528bc88876d6e0f64e843da089e85f6d3f58
prerequisite-patch-id: c14ed2e970be2c3f8ba746634e8161b94c148e88
--
2.34.1
Powered by blists - more mailing lists