Skip to contentSkip to conversation

auxdisplay: Fix errors in cfag12864b-example.c

PATCH New [email protected] 1 participant 1 message Jul 18, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 auxdisplay: Fix errors in cfag12864b-example.c

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

---
 samples/auxdisplay/cfag12864b-example.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
samples/auxdisplay/cfag12864b-example.c +4 -3
index 2e3bb7375c99..247789c09eb1 100644
@@ -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');
     }