Change names of local variables, according to coding style.
Patch upholds compileability.

Co-developed-by: Daniel Bauer <daniel.j.ba...@fau.de>
Signed-off-by: Daniel Bauer <daniel.j.ba...@fau.de>
Signed-off-by: Sven Leykauf <sven_leyka...@web.de>
---
 drivers/staging/sm750fb/sm750_accel.c | 46 +++++++++++++--------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/drivers/staging/sm750fb/sm750_accel.c 
b/drivers/staging/sm750fb/sm750_accel.c
index 85ba131c7ef6..e347d6b5508c 100644
--- a/drivers/staging/sm750fb/sm750_accel.c
+++ b/drivers/staging/sm750fb/sm750_accel.c
@@ -90,7 +90,7 @@ int sm750_hw_fillrect(struct lynx_accel *accel,
                      u32 x, u32 y, u32 width, u32 height,
                      u32 color, u32 rop)
 {
-       u32 deCtrl;
+       u32 de_ctrl;
 
        if (accel->de_wait() != 0) {
                /*
@@ -122,11 +122,11 @@ int sm750_hw_fillrect(struct lynx_accel *accel,
                  ((width << DE_DIMENSION_X_SHIFT) & DE_DIMENSION_X_MASK) |
                  (height & DE_DIMENSION_Y_ET_MASK)); /* dpr8 */
 
-       deCtrl = DE_CONTROL_STATUS | DE_CONTROL_LAST_PIXEL |
+       de_ctrl = DE_CONTROL_STATUS | DE_CONTROL_LAST_PIXEL |
                DE_CONTROL_COMMAND_RECTANGLE_FILL | DE_CONTROL_ROP_SELECT |
                (rop & DE_CONTROL_ROP_MASK); /* dpr0xc */
 
-       write_dpr(accel, DE_CONTROL, deCtrl);
+       write_dpr(accel, DE_CONTROL, de_ctrl);
        return 0;
 }
 
@@ -153,9 +153,9 @@ int sm750_hw_copyarea(struct lynx_accel *accel,
                      unsigned int width, unsigned int height,
                      unsigned int rop2)
 {
-       unsigned int nDirection, de_ctrl;
+       unsigned int n_direction, de_ctrl;
 
-       nDirection = LEFT_TO_RIGHT;
+       n_direction = LEFT_TO_RIGHT;
        /* Direction of ROP2 operation: 1 = Left to Right, (-1) = Right to Left 
*/
        de_ctrl = 0;
 
@@ -173,7 +173,7 @@ int sm750_hw_copyarea(struct lynx_accel *accel,
                         *      +----------+
                         */
 
-                       nDirection = BOTTOM_TO_TOP;
+                       n_direction = BOTTOM_TO_TOP;
                } else if (sy > dy) {
                        /*  +----------+
                         *  |D         |
@@ -185,7 +185,7 @@ int sm750_hw_copyarea(struct lynx_accel *accel,
                         *      +----------+
                         */
 
-                       nDirection = TOP_TO_BOTTOM;
+                       n_direction = TOP_TO_BOTTOM;
                } else {
                        /* sy == dy */
 
@@ -198,7 +198,7 @@ int sm750_hw_copyarea(struct lynx_accel *accel,
                                 * +------+---+------+
                                 */
 
-                               nDirection = RIGHT_TO_LEFT;
+                               n_direction = RIGHT_TO_LEFT;
                        } else {
                        /* sx > dx */
 
@@ -210,12 +210,12 @@ int sm750_hw_copyarea(struct lynx_accel *accel,
                                 * +------+---+------+
                                 */
 
-                               nDirection = LEFT_TO_RIGHT;
+                               n_direction = LEFT_TO_RIGHT;
                        }
                }
        }
 
-       if ((nDirection == BOTTOM_TO_TOP) || (nDirection == RIGHT_TO_LEFT)) {
+       if ((n_direction == BOTTOM_TO_TOP) || (n_direction == RIGHT_TO_LEFT)) {
                sx += width - 1;
                sy += height - 1;
                dx += width - 1;
@@ -277,7 +277,7 @@ int sm750_hw_copyarea(struct lynx_accel *accel,
                  (height & DE_DIMENSION_Y_ET_MASK)); /* dpr08 */
 
        de_ctrl = (rop2 & DE_CONTROL_ROP_MASK) | DE_CONTROL_ROP_SELECT |
-               ((nDirection == RIGHT_TO_LEFT) ? DE_CONTROL_DIRECTION : 0) |
+               ((n_direction == RIGHT_TO_LEFT) ? DE_CONTROL_DIRECTION : 0) |
                DE_CONTROL_COMMAND_BITBLT | DE_CONTROL_STATUS;
        write_dpr(accel, DE_CONTROL, de_ctrl); /* dpr0c */
 
@@ -319,17 +319,17 @@ int sm750_hw_imageblit(struct lynx_accel *accel, const 
char *p_srcbuf,
                       u32 byte_per_pixel, u32 dx, u32 dy, u32 width,
                       u32 height, u32 f_color, u32 b_color, u32 rop2)
 {
-       unsigned int ulBytesPerScan;
-       unsigned int ul4BytesPerScan;
-       unsigned int ulBytesRemain;
+       unsigned int ul_bytes_per_scan;
+       unsigned int ul_4_bytes_per_scan;
+       unsigned int ul_bytes_remain;
        unsigned int de_ctrl = 0;
-       unsigned char ajRemain[4];
+       unsigned char aj_remain[4];
        int i, j;
 
        start_bit &= 7; /* Just make sure the start bit is within legal range */
-       ulBytesPerScan = (width + start_bit + 7) / 8;
-       ul4BytesPerScan = ulBytesPerScan & ~3;
-       ulBytesRemain = ulBytesPerScan & 3;
+       ul_bytes_per_scan = (width + start_bit + 7) / 8;
+       ul_4_bytes_per_scan = ul_bytes_per_scan & ~3;
+       ul_bytes_remain = ul_bytes_per_scan & 3;
 
        if (accel->de_wait() != 0)
                return -1;
@@ -395,13 +395,13 @@ int sm750_hw_imageblit(struct lynx_accel *accel, const 
char *p_srcbuf,
        /* Write MONO data (line by line) to 2D Engine data port */
        for (i = 0; i < height; i++) {
                /* For each line, send the data in chunks of 4 bytes */
-               for (j = 0; j < (ul4BytesPerScan / 4); j++)
+               for (j = 0; j < (ul_4_bytes_per_scan / 4); j++)
                        write_dp_port(accel, *(unsigned int *)(p_srcbuf + (j * 
4)));
 
-               if (ulBytesRemain) {
-                       memcpy(ajRemain, p_srcbuf + ul4BytesPerScan,
-                              ulBytesRemain);
-                       write_dp_port(accel, *(unsigned int *)ajRemain);
+               if (ul_bytes_remain) {
+                       memcpy(aj_remain, p_srcbuf + ul_4_bytes_per_scan,
+                              ul_bytes_remain);
+                       write_dp_port(accel, *(unsigned int *)aj_remain);
                }
 
                p_srcbuf += src_delta;
-- 
2.20.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to