mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
1ebd8eccf5
commit
36520841a4
1 changed files with 2 additions and 4 deletions
|
@ -687,7 +687,7 @@ static int newport_scroll(struct vc_data *vc, int t, int b, int dir,
|
||||||
static void newport_bmove(struct vc_data *vc, int sy, int sx, int dy,
|
static void newport_bmove(struct vc_data *vc, int sy, int sx, int dy,
|
||||||
int dx, int h, int w)
|
int dx, int h, int w)
|
||||||
{
|
{
|
||||||
short xs, ys, xe, ye, xoffs, yoffs, tmp;
|
short xs, ys, xe, ye, xoffs, yoffs;
|
||||||
|
|
||||||
xs = sx << 3;
|
xs = sx << 3;
|
||||||
xe = ((sx + w) << 3) - 1;
|
xe = ((sx + w) << 3) - 1;
|
||||||
|
@ -701,9 +701,7 @@ static void newport_bmove(struct vc_data *vc, int sy, int sx, int dy,
|
||||||
yoffs = (dy - sy) << 4;
|
yoffs = (dy - sy) << 4;
|
||||||
if (xoffs > 0) {
|
if (xoffs > 0) {
|
||||||
/* move to the right, exchange starting points */
|
/* move to the right, exchange starting points */
|
||||||
tmp = xe;
|
swap(xe, xs);
|
||||||
xe = xs;
|
|
||||||
xs = tmp;
|
|
||||||
}
|
}
|
||||||
newport_wait(npregs);
|
newport_wait(npregs);
|
||||||
npregs->set.drawmode0 = (NPORT_DMODE0_S2S | NPORT_DMODE0_BLOCK |
|
npregs->set.drawmode0 = (NPORT_DMODE0_S2S | NPORT_DMODE0_BLOCK |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue