lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240111070041.9258-1-chenguohua_716@163.com>
Date: Thu, 11 Jan 2024 07:00:41 +0000
From: GuoHua Chen <chenguohua_716@....com>
To: tzimmermann@...e.de,
	airlied@...il.com,
	maarten.lankhorst@...ux.intel.com,
	daniel@...ll.ch,
	mripard@...nel.org,
	patrik.r.jakobsson@...il.com
Cc: linux-kernel@...r.kernel.org,
	dri-devel@...ts.freedesktop.org,
	GuoHua Chen <chenguohua_716@....com>
Subject: [PATCH] drm/gma500: Clean up errors in psb_intel_sdvo.h

Fix the following errors reported by checkpatch:

ERROR: "foo * bar" should be "foo *bar"
ERROR: "(foo*)" should be "(foo *)"

Signed-off-by: GuoHua Chen <chenguohua_716@....com>
---
 drivers/gpu/drm/gma500/psb_intel_sdvo.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/gma500/psb_intel_sdvo.c b/drivers/gpu/drm/gma500/psb_intel_sdvo.c
index e4f914deceba..86802c274e5b 100644
--- a/drivers/gpu/drm/gma500/psb_intel_sdvo.c
+++ b/drivers/gpu/drm/gma500/psb_intel_sdvo.c
@@ -451,7 +451,7 @@ static const char *cmd_status_names[] = {
 static bool psb_intel_sdvo_write_cmd(struct psb_intel_sdvo *psb_intel_sdvo, u8 cmd,
 				 const void *args, int args_len)
 {
-	u8 buf[MAX_ARG_LEN*2 + 2], status;
+	u8 buf[MAX_ARG_LEN * 2 + 2], status;
 	struct i2c_msg msgs[MAX_ARG_LEN + 3];
 	int i, ret;
 
@@ -466,16 +466,16 @@ static bool psb_intel_sdvo_write_cmd(struct psb_intel_sdvo *psb_intel_sdvo, u8 c
 		msgs[i].addr = psb_intel_sdvo->slave_addr;
 		msgs[i].flags = 0;
 		msgs[i].len = 2;
-		msgs[i].buf = buf + 2 *i;
-		buf[2*i + 0] = SDVO_I2C_ARG_0 - i;
-		buf[2*i + 1] = ((u8*)args)[i];
+		msgs[i].buf = buf + 2 * i;
+		buf[2 * i + 0] = SDVO_I2C_ARG_0 - i;
+		buf[2 * i + 1] = ((u8 *)args)[i];
 	}
 	msgs[i].addr = psb_intel_sdvo->slave_addr;
 	msgs[i].flags = 0;
 	msgs[i].len = 2;
-	msgs[i].buf = buf + 2*i;
-	buf[2*i + 0] = SDVO_I2C_OPCODE;
-	buf[2*i + 1] = cmd;
+	msgs[i].buf = buf + 2 * i;
+	buf[2 * i + 0] = SDVO_I2C_OPCODE;
+	buf[2 * i + 1] = cmd;
 
 	/* the following two are to read the response */
 	status = SDVO_I2C_CMD_STATUS;
@@ -798,7 +798,7 @@ static void psb_intel_sdvo_get_dtd_from_mode(struct psb_intel_sdvo_dtd *dtd,
 	dtd->part2.reserved = 0;
 }
 
-static void psb_intel_sdvo_get_mode_from_dtd(struct drm_display_mode * mode,
+static void psb_intel_sdvo_get_mode_from_dtd(struct drm_display_mode *mode,
 					 const struct psb_intel_sdvo_dtd *dtd)
 {
 	mode->hdisplay = dtd->part1.h_active;
-- 
2.17.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ