Commit 3efc6616 authored by Katie Dunne's avatar Katie Dunne Committed by Greg Kroah-Hartman

staging: sm750fb: add spaces around operators

Add spaces around operators -, *, ?:, >>, << to conform to kernel style.
These instances were found with checkpatch.pl
Signed-off-by: default avatarKatie Dunne <kdunne@mail.ccsf.edu>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 144634a6
...@@ -111,14 +111,14 @@ void sm750_hw_cursor_setData(struct lynx_cursor *cursor, ...@@ -111,14 +111,14 @@ void sm750_hw_cursor_setData(struct lynx_cursor *cursor,
data = 0; data = 0;
for (j = 0; j < 8; j++) { for (j = 0; j < 8; j++) {
if (mask & (0x80>>j)) { if (mask & (0x80 >> j)) {
if (rop == ROP_XOR) if (rop == ROP_XOR)
opr = mask ^ color; opr = mask ^ color;
else else
opr = mask & color; opr = mask & color;
/* 2 stands for forecolor and 1 for backcolor */ /* 2 stands for forecolor and 1 for backcolor */
data |= ((opr & (0x80>>j))?2:1)<<(j*2); data |= ((opr & (0x80 >> j)) ? 2 : 1) << (j * 2);
} }
} }
iowrite16(data, pbuffer); iowrite16(data, pbuffer);
...@@ -165,13 +165,13 @@ void sm750_hw_cursor_setData2(struct lynx_cursor *cursor, ...@@ -165,13 +165,13 @@ void sm750_hw_cursor_setData2(struct lynx_cursor *cursor,
data = 0; data = 0;
for (j = 0; j < 8; j++) { for (j = 0; j < 8; j++) {
if (mask & (1<<j)) if (mask & (1 << j))
data |= ((color & (1<<j))?1:2)<<(j*2); data |= ((color & (1 << j)) ? 1 : 2) << (j * 2);
} }
iowrite16(data, pbuffer); iowrite16(data, pbuffer);
/* assume pitch is 1,2,4,8,...*/ /* assume pitch is 1,2,4,8,...*/
if (!(i&(pitch-1))) { if (!(i & (pitch - 1))) {
/* need a return */ /* need a return */
pstart += offset; pstart += offset;
pbuffer = pstart; pbuffer = pstart;
......
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