projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebd8ec
)
video/console: use swap() in newport_bmove()
author
Fabian Frederick
<fabf@skynet.be>
Mon, 18 May 2015 17:43:21 +0000
(19:43 +0200)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Wed, 27 May 2015 09:54:49 +0000
(12:54 +0300)
Use kernel.h macro definition.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/console/newport_con.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/console/newport_con.c
b/drivers/video/console/newport_con.c
index a6ab9299813c9558dcf9e2cb2ec629e3b557e398..bb4e96255974af27d090b0c4d25a1269976d2d76 100644
(file)
--- a/
drivers/video/console/newport_con.c
+++ b/
drivers/video/console/newport_con.c
@@
-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,
int dx, int h, int w)
{
- short xs, ys, xe, ye, xoffs, yoffs
, tmp
;
+ short xs, ys, xe, ye, xoffs, yoffs;
xs = sx << 3;
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;
if (xoffs > 0) {
/* move to the right, exchange starting points */
- tmp = xe;
- xe = xs;
- xs = tmp;
+ swap(xe, xs);
}
newport_wait(npregs);
npregs->set.drawmode0 = (NPORT_DMODE0_S2S | NPORT_DMODE0_BLOCK |