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@xxxxxxx> --- 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