From: shijie001@208suo.com
To: linux-kernel@vger.kernel.org
Subject: [PATCH] auxdisplay: Fix errors in cfag12864b-example.c
Date: Tue, 18 Jul 2023 13:33:38 +0800 [thread overview]
Message-ID: <e642ae32a3c9fba43a72e5d6509776b4@208suo.com> (raw)
In-Reply-To: <tencent_657C88BFFDAD2116DFE593516118DBD3BF06@qq.com>
The following checkpatch errors are removed:
ERROR: "foo * bar" should be "foo *bar"
ERROR: space prohibited before that '++' (ctx:WxB)
ERROR: trailing statements should be on next line
Signed-off-by: Jie Shi <shijie001@208suo.com>
---
samples/auxdisplay/cfag12864b-example.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/samples/auxdisplay/cfag12864b-example.c
b/samples/auxdisplay/cfag12864b-example.c
index 2e3bb7375c99..247789c09eb1 100644
--- a/samples/auxdisplay/cfag12864b-example.c
+++ b/samples/auxdisplay/cfag12864b-example.c
@@ -38,7 +38,7 @@
#endif
int cfag12864b_fd;
-unsigned char * cfag12864b_mem;
+unsigned char *cfag12864b_mem;
unsigned char cfag12864b_buffer[CFAG12864B_SIZE];
/*
@@ -148,7 +148,7 @@ static void cfag12864b_clear(void)
* Pixel off: src[i] = 0
* Pixel on: src[i] > 0
*/
-static void cfag12864b_format(unsigned char * matrix)
+static void cfag12864b_format(unsigned char *matrix)
{
unsigned char i, j, n;
@@ -231,7 +231,7 @@ static void example(unsigned char n)
case 6:
printf("Do negative not-ing all bits");
for (i = 0; i < CFAG12864B_WIDTH; i++)
- for (j = 0; j < CFAG12864B_HEIGHT; j ++)
+ for (j = 0; j < CFAG12864B_HEIGHT; j++)
cfag12864b_not(i, j);
break;
}
@@ -258,6 +258,7 @@ int main(int argc, char *argv[])
for (n = 1; n <= EXAMPLES; n++) {
example(n);
cfag12864b_blit();
+
while (getchar() != '\n');
}
parent reply other threads:[~2023-07-18 5:33 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <tencent_657C88BFFDAD2116DFE593516118DBD3BF06@qq.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e642ae32a3c9fba43a72e5d6509776b4@208suo.com \
--to=shijie001@208suo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®