[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ed10428746cc0d22256876ab5c11bb1d4c798669.1617776878.git.pavle.rohalj@gmail.com>
Date: Tue, 6 Apr 2021 23:43:35 -0700
From: Pavle Rohalj <pavle.rohalj@...il.com>
To: sudipm.mukherjee@...il.com, teddy.wang@...iconmotion.com,
gregkh@...uxfoundation.org, linux-fbdev@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH v2 21/49] staging: sm750fb: Rename function write_dpPort to
snake case
Fix "Avoid CamelCase" checkpatch.pl check for the function
write_dpPort.
Signed-off-by: Pavle Rohalj <pavle.rohalj@...il.com>
---
drivers/staging/sm750fb/sm750_accel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750fb/sm750_accel.c
index 4327bda871e1..4ad2814b5b54 100644
--- a/drivers/staging/sm750fb/sm750_accel.c
+++ b/drivers/staging/sm750fb/sm750_accel.c
@@ -28,7 +28,7 @@ static inline u32 read_dpr(struct lynx_accel *accel, int offset)
return readl(accel->dprBase + offset);
}
-static inline void write_dpPort(struct lynx_accel *accel, u32 data)
+static inline void write_dp_port(struct lynx_accel *accel, u32 data)
{
writel(data, accel->dpPortBase);
}
@@ -396,12 +396,12 @@ int sm750_hw_imageblit(struct lynx_accel *accel, const char *src_buf,
for (i = 0; i < height; i++) {
/* For each line, send the data in chunks of 4 bytes */
for (j = 0; j < (ul4BytesPerScan / 4); j++)
- write_dpPort(accel, *(unsigned int *)(src_buf + (j * 4)));
+ write_dp_port(accel, *(unsigned int *)(src_buf + (j * 4)));
if (ulBytesRemain) {
memcpy(ajRemain, src_buf + ul4BytesPerScan,
ulBytesRemain);
- write_dpPort(accel, *(unsigned int *)ajRemain);
+ write_dp_port(accel, *(unsigned int *)ajRemain);
}
src_buf += src_delta;
--
2.30.2
Powered by blists - more mailing lists