staging: sm750fb: trivial comment indention fix.
authorYifeng Li <tomli@tomli.me>
Sun, 3 Mar 2019 16:55:31 +0000 (00:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:21 +0000 (07:05 +0100)
In function sm750_hw_copyarea() of sm750_accel.c, there are
some comments in ASCII graphs, describing 4 possible scenarios
of overlapping areas when copying an area. However, the graphs
have broken indention.

The entire SiliconMotion series video controllers, including
SM501, SM712 and SM750 have similar 2D engines, yet, I have
not seen a single version of it with ASCII graphs properly
formatted...

Fix the the misleading ASCII graphs. It would eliminate the
confusions and improve code readability.

Signed-off-by: Yifeng Li <tomli@tomli.me>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750_accel.c

index eed840b251daed5227c2d0a2e0d3308c4a8edeb5..dbcbbd1055da377a6e020dca8c5fa978426b59c0 100644 (file)
@@ -155,26 +155,26 @@ unsigned int rop2)   /* ROP value */
        if (sBase == dBase && sPitch == dPitch) {
                /* Determine direction of operation */
                if (sy < dy) {
-                       /* +----------+
-                        * |S         |
-                        * |   +----------+
-                        * |   |      |   |
-                        * |   |      |   |
-                        * +---|------+   |
-                        * |         D|
-                        * +----------+
+                       /*  +----------+
+                        *  |S         |
+                        *  |   +----------+
+                        *  |   |      |   |
+                        *  |   |      |   |
+                        *  +---|------+   |
+                        *      |         D|
+                        *      +----------+
                         */
 
                        nDirection = BOTTOM_TO_TOP;
                } else if (sy > dy) {
-                       /* +----------+
-                        * |D         |
-                        * |   +----------+
-                        * |   |      |   |
-                        * |   |      |   |
-                        * +---|------+   |
-                        * |         S|
-                        * +----------+
+                       /*  +----------+
+                        *  |D         |
+                        *  |   +----------+
+                        *  |   |      |   |
+                        *  |   |      |   |
+                        *  +---|------+   |
+                        *      |         S|
+                        *      +----------+
                         */
 
                        nDirection = TOP_TO_BOTTOM;