diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-05-18 19:31:04 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-05-27 12:54:48 +0300 |
commit | 889dbc174933895ad28c38bec47e2794a5957ef0 (patch) | |
tree | 7388b14bb6617e228358da674612032ef9d495ac /drivers/video/fbdev/matrox | |
parent | 5e47932be81e860d317498363c13153e7df37625 (diff) | |
download | linux-stable-889dbc174933895ad28c38bec47e2794a5957ef0.tar.gz linux-stable-889dbc174933895ad28c38bec47e2794a5957ef0.tar.bz2 linux-stable-889dbc174933895ad28c38bec47e2794a5957ef0.zip |
video: fbdev: matrox: use swap() in matroxfb_decode_var()
Use kernel.h macro definition.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/fbdev/matrox')
-rw-r--r-- | drivers/video/fbdev/matrox/matroxfb_base.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/matrox/matroxfb_base.c index 62539ca1cfa9..2ba4e54bb59d 100644 --- a/drivers/video/fbdev/matrox/matroxfb_base.c +++ b/drivers/video/fbdev/matrox/matroxfb_base.c @@ -591,12 +591,8 @@ static int matroxfb_decode_var(const struct matrox_fb_info *minfo, unsigned int max_yres; while (m1) { - int t; - while (m2 >= m1) m2 -= m1; - t = m1; - m1 = m2; - m2 = t; + swap(m1, m2); } m2 = linelen * PAGE_SIZE / m2; *ydstorg = m2 = 0x400000 % m2; |