staging: sm750fb: Added spaces around arithmetic operators.
authorVarsha Rao <rvarsha016@gmail.com>
Mon, 27 Feb 2017 10:10:52 +0000 (15:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:06 +0000 (09:17 +0100)
Added spaces around arithmetic operators (/, *), to fix the checkpatch
issue.

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.h
drivers/staging/sm750fb/sm750_accel.c

index 28f4b9b..306711e 100644 (file)
@@ -177,7 +177,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 af0db57..57ae743 100644 (file)
@@ -384,7 +384,7 @@ int sm750_hw_imageblit(struct lynx_accel *accel,
        /* 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 < (ul4BytesPerScan / 4); j++)
                        write_dpPort(accel, *(unsigned int *)(pSrcbuf + (j * 4)));
 
                if (ulBytesRemain) {