Commit c900dc68 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Helge Deller

vgacon: remove unused xpos from vgacon_set_cursor_size()

xpos is unused, remove it.
Signed-off-by: default avatar"Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 6ceed69c
...@@ -437,7 +437,7 @@ static void vgacon_invert_region(struct vc_data *c, u16 * p, int count) ...@@ -437,7 +437,7 @@ static void vgacon_invert_region(struct vc_data *c, u16 * p, int count)
} }
} }
static void vgacon_set_cursor_size(int xpos, int from, int to) static void vgacon_set_cursor_size(int from, int to)
{ {
unsigned long flags; unsigned long flags;
int curs, cure; int curs, cure;
...@@ -479,9 +479,9 @@ static void vgacon_cursor(struct vc_data *c, int mode) ...@@ -479,9 +479,9 @@ static void vgacon_cursor(struct vc_data *c, int mode)
case CM_ERASE: case CM_ERASE:
write_vga(14, (c->vc_pos - vga_vram_base) / 2); write_vga(14, (c->vc_pos - vga_vram_base) / 2);
if (vga_video_type >= VIDEO_TYPE_VGAC) if (vga_video_type >= VIDEO_TYPE_VGAC)
vgacon_set_cursor_size(c->state.x, 31, 30); vgacon_set_cursor_size(31, 30);
else else
vgacon_set_cursor_size(c->state.x, 31, 31); vgacon_set_cursor_size(31, 31);
break; break;
case CM_MOVE: case CM_MOVE:
...@@ -489,8 +489,7 @@ static void vgacon_cursor(struct vc_data *c, int mode) ...@@ -489,8 +489,7 @@ static void vgacon_cursor(struct vc_data *c, int mode)
write_vga(14, (c->vc_pos - vga_vram_base) / 2); write_vga(14, (c->vc_pos - vga_vram_base) / 2);
switch (CUR_SIZE(c->vc_cursor_type)) { switch (CUR_SIZE(c->vc_cursor_type)) {
case CUR_UNDERLINE: case CUR_UNDERLINE:
vgacon_set_cursor_size(c->state.x, vgacon_set_cursor_size(c->vc_cell_height -
c->vc_cell_height -
(c->vc_cell_height < (c->vc_cell_height <
10 ? 2 : 3), 10 ? 2 : 3),
c->vc_cell_height - c->vc_cell_height -
...@@ -498,35 +497,31 @@ static void vgacon_cursor(struct vc_data *c, int mode) ...@@ -498,35 +497,31 @@ static void vgacon_cursor(struct vc_data *c, int mode)
10 ? 1 : 2)); 10 ? 1 : 2));
break; break;
case CUR_TWO_THIRDS: case CUR_TWO_THIRDS:
vgacon_set_cursor_size(c->state.x, vgacon_set_cursor_size(c->vc_cell_height / 3,
c->vc_cell_height / 3,
c->vc_cell_height - c->vc_cell_height -
(c->vc_cell_height < (c->vc_cell_height <
10 ? 1 : 2)); 10 ? 1 : 2));
break; break;
case CUR_LOWER_THIRD: case CUR_LOWER_THIRD:
vgacon_set_cursor_size(c->state.x, vgacon_set_cursor_size((c->vc_cell_height * 2) / 3,
(c->vc_cell_height * 2) / 3,
c->vc_cell_height - c->vc_cell_height -
(c->vc_cell_height < (c->vc_cell_height <
10 ? 1 : 2)); 10 ? 1 : 2));
break; break;
case CUR_LOWER_HALF: case CUR_LOWER_HALF:
vgacon_set_cursor_size(c->state.x, vgacon_set_cursor_size(c->vc_cell_height / 2,
c->vc_cell_height / 2,
c->vc_cell_height - c->vc_cell_height -
(c->vc_cell_height < (c->vc_cell_height <
10 ? 1 : 2)); 10 ? 1 : 2));
break; break;
case CUR_NONE: case CUR_NONE:
if (vga_video_type >= VIDEO_TYPE_VGAC) if (vga_video_type >= VIDEO_TYPE_VGAC)
vgacon_set_cursor_size(c->state.x, 31, 30); vgacon_set_cursor_size(31, 30);
else else
vgacon_set_cursor_size(c->state.x, 31, 31); vgacon_set_cursor_size(31, 31);
break; break;
default: default:
vgacon_set_cursor_size(c->state.x, 1, vgacon_set_cursor_size(1, c->vc_cell_height);
c->vc_cell_height);
break; break;
} }
break; break;
......
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