Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video/console: use swap() in newport_bmove()

Use kernel.h macro definition.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Fabian Frederick and committed by
Tomi Valkeinen
36520841 1ebd8ecc

+2 -4
+2 -4
drivers/video/console/newport_con.c
··· 687 687 static void newport_bmove(struct vc_data *vc, int sy, int sx, int dy, 688 688 int dx, int h, int w) 689 689 { 690 - short xs, ys, xe, ye, xoffs, yoffs, tmp; 690 + short xs, ys, xe, ye, xoffs, yoffs; 691 691 692 692 xs = sx << 3; 693 693 xe = ((sx + w) << 3) - 1; ··· 701 701 yoffs = (dy - sy) << 4; 702 702 if (xoffs > 0) { 703 703 /* move to the right, exchange starting points */ 704 - tmp = xe; 705 - xe = xs; 706 - xs = tmp; 704 + swap(xe, xs); 707 705 } 708 706 newport_wait(npregs); 709 707 npregs->set.drawmode0 = (NPORT_DMODE0_S2S | NPORT_DMODE0_BLOCK |