Commit 889dbc17 authored by Fabian Frederick's avatar Fabian Frederick Committed by Tomi Valkeinen

video: fbdev: matrox: use swap() in matroxfb_decode_var()

Use kernel.h macro definition.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 5e47932b
...@@ -591,12 +591,8 @@ static int matroxfb_decode_var(const struct matrox_fb_info *minfo, ...@@ -591,12 +591,8 @@ static int matroxfb_decode_var(const struct matrox_fb_info *minfo,
unsigned int max_yres; unsigned int max_yres;
while (m1) { while (m1) {
int t;
while (m2 >= m1) m2 -= m1; while (m2 >= m1) m2 -= m1;
t = m1; swap(m1, m2);
m1 = m2;
m2 = t;
} }
m2 = linelen * PAGE_SIZE / m2; m2 = linelen * PAGE_SIZE / m2;
*ydstorg = m2 = 0x400000 % m2; *ydstorg = m2 = 0x400000 % m2;
......
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