Commit dca633d4 authored by Varsha Rao's avatar Varsha Rao Committed by Greg Kroah-Hartman

staging: sm750fb: Added spaces around arithmetic operators.

Added spaces around arithmetic operators (/, *), to fix the checkpatch
issue.
Signed-off-by: default avatarVarsha Rao <rvarsha016@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4e7f31c0
...@@ -177,7 +177,7 @@ struct lynxfb_par { ...@@ -177,7 +177,7 @@ struct lynxfb_par {
static inline unsigned long ps_to_hz(unsigned int psvalue) 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 */ /* 10^12 / picosecond period gives frequency in Hz */
do_div(numerator, psvalue); do_div(numerator, psvalue);
return (unsigned long)numerator; return (unsigned long)numerator;
......
...@@ -384,7 +384,7 @@ int sm750_hw_imageblit(struct lynx_accel *accel, ...@@ -384,7 +384,7 @@ int sm750_hw_imageblit(struct lynx_accel *accel,
/* Write MONO data (line by line) to 2D Engine data port */ /* 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 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))); write_dpPort(accel, *(unsigned int *)(pSrcbuf + (j * 4)));
if (ulBytesRemain) { if (ulBytesRemain) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment