staging: sm750fb: add spaces around operators
authorJuston Li <juston.h.li@gmail.com>
Wed, 15 Jul 2015 04:14:41 +0000 (21:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 05:52:52 +0000 (22:52 -0700)
Fixes checkpath.pl error:
ERROR: spaces required around that operator

Note running checkpatch.pl with '--strict' catches more
of these errors along with cases where spacing is optional
but preferred. Take care of these in a future patch.

Signed-off-by: Juston Li <juston.h.li@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c
drivers/staging/sm750fb/ddk750_power.c
drivers/staging/sm750fb/sm750.h
drivers/staging/sm750fb/sm750_accel.c
drivers/staging/sm750fb/sm750_cursor.c
drivers/staging/sm750fb/sm750_help.h

index 633201e134f2b4943b933468d8318c098d45a73c..d7435d7302b45c3d55714c52618980afc76357e8 100644 (file)
@@ -471,7 +471,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
                        M = quo*X;
                        M += fl_quo * X / 10000;
                        /* round step */
-                       M += (fl_quo*X % 10000)>5000?1:0;
+                       M += (fl_quo*X % 10000) > 5000?1:0;
                        if (M < 256 && M > 0) {
                                unsigned int diff;
                                tmpClock = pll->inputFreq * M / N / X;
index 5f697b838651e5da39abd8d1387cb5d3c99e63df..28d4402928d8ac3722ed7cc06224547e5cbf9e19 100644 (file)
@@ -10,7 +10,7 @@ void ddk750_setDPMS(DPMS_t state)
                POKE32(CRT_DISPLAY_CTRL, FIELD_VALUE(value, CRT_DISPLAY_CTRL, DPMS, state));
        } else {
                value = PEEK32(SYSTEM_CTRL);
-               value= FIELD_VALUE(value, SYSTEM_CTRL, DPMS, state);
+               value = FIELD_VALUE(value, SYSTEM_CTRL, DPMS, state);
                POKE32(SYSTEM_CTRL, value);
        }
 }
index ae872bd0819ed18f89c264c441c6ec23ca3259a4..d6916fd697dd3c1e590879dac7aa52c3fd9ede94 100644 (file)
@@ -172,7 +172,7 @@ struct lynxfb_par {
 
 static inline unsigned long ps_to_hz(unsigned int psvalue)
 {
-       unsigned long long numerator=1000*1000*1000*1000ULL;
+       unsigned long long numerator = 1000*1000*1000*1000ULL;
        /* 10^12 / picosecond period gives frequency in Hz */
        do_div(numerator, psvalue);
        return (unsigned long)numerator;
index afe73e8265d1e88f28efd7c13d46e720dac6bebf..0cfe96c2b5dc92d170fcba3a04b9f743aeace80f 100644 (file)
@@ -414,10 +414,10 @@ int hw_imageblit(struct lynx_accel *accel,
        write_dpr(accel, DE_CONTROL, de_ctrl | deGetTransparency(accel));
 
        /* Write MONO data (line by line) to 2D Engine data port */
-       for (i=0; i<height; i++)
+       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 < (ul4BytesPerScan/4); j++)
                {
                        write_dpPort(accel, *(unsigned int *)(pSrcbuf + (j * 4)));
                }
index 2fcec326fcf36f567c075feace7f4557df63a654..9dabac1c643357e3a427613bb8f6cb7c3eb20b99 100644 (file)
@@ -122,7 +122,7 @@ void hw_cursor_setData(struct lynx_cursor *cursor,
                odd=0;
 */
 
-       for (i=0;i<count;i++)
+       for (i = 0;i < count;i++)
        {
                color = *pcol++;
                mask = *pmsk++;
@@ -137,7 +137,7 @@ void hw_cursor_setData(struct lynx_cursor *cursor,
                else
                        opr = mask & color;
 
-               for (j=0;j<8;j++)
+               for (j = 0;j < 8;j++)
                {
 
                        if (opr & (0x80 >> j))
@@ -149,7 +149,7 @@ void hw_cursor_setData(struct lynx_cursor *cursor,
                        }
                }
 #else
-               for (j=0;j<8;j++) {
+               for (j = 0;j < 8;j++) {
                        if (mask & (0x80>>j)) {
                                if (rop == ROP_XOR)
                                        opr = mask ^ color;
@@ -204,7 +204,7 @@ void hw_cursor_setData2(struct lynx_cursor *cursor,
        pstart = cursor->vstart;
        pbuffer = pstart;
 
-       for (i=0;i<count;i++)
+       for (i = 0;i < count;i++)
        {
                color = *pcol++;
                mask = *pmsk++;
@@ -217,7 +217,7 @@ void hw_cursor_setData2(struct lynx_cursor *cursor,
                else
                        opr = mask & color;
 
-               for (j=0;j<8;j++)
+               for (j = 0;j < 8;j++)
                {
 
                        if (opr & (0x80 >> j))
@@ -229,7 +229,7 @@ void hw_cursor_setData2(struct lynx_cursor *cursor,
                        }
                }
 #else
-               for (j=0;j<8;j++) {
+               for (j = 0;j < 8;j++) {
                        if (mask & (1<<j))
                                data |= ((color & (1<<j))?1:2)<<(j*2);
                }
index 544ac41248ce4bd35d410edb848b88a7578c5002..8dc6bd22f5db87e3a4349e1f67d56116b66d6311 100644 (file)
@@ -73,7 +73,7 @@
 
 static inline unsigned int absDiff(unsigned int a, unsigned int b)
 {
-       if (a<b)
+       if (a < b)
                return b-a;
        else
                return a-b;
This page took 0.028785 seconds and 5 git commands to generate.