mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
sticon: Implement struct consw.con_unblank
Implement con_unblank from struct consw. The new function is called sticon_unblank(). Remove the related code from sticon_blank(). There is no display unblanking in sticon: only return true to redraw the console. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
5d1df7fae0
commit
aa121c4be2
|
|
@ -302,17 +302,20 @@ static bool sticon_switch(struct vc_data *conp)
|
|||
static bool sticon_blank(struct vc_data *c, enum vesa_blank_mode blank,
|
||||
bool mode_switch)
|
||||
{
|
||||
if (blank == VESA_NO_BLANKING) {
|
||||
if (mode_switch)
|
||||
vga_is_gfx = 0;
|
||||
return true;
|
||||
}
|
||||
sti_clear(sticon_sti, 0, 0, c->vc_rows, c->vc_cols, BLANK,
|
||||
font_data[c->vc_num]);
|
||||
if (mode_switch)
|
||||
vga_is_gfx = 1;
|
||||
sti_clear(sticon_sti, 0, 0, c->vc_rows, c->vc_cols, BLANK, font_data[c->vc_num]);
|
||||
|
||||
return true;
|
||||
if (mode_switch)
|
||||
vga_is_gfx = 1;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool sticon_unblank(struct vc_data *c, bool mode_switch)
|
||||
{
|
||||
if (mode_switch)
|
||||
vga_is_gfx = 0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static u8 sticon_build_attr(struct vc_data *conp, u8 color,
|
||||
|
|
@ -356,6 +359,7 @@ static const struct consw sti_con = {
|
|||
.con_scroll = sticon_scroll,
|
||||
.con_switch = sticon_switch,
|
||||
.con_blank = sticon_blank,
|
||||
.con_unblank = sticon_unblank,
|
||||
.con_font_set = sticon_font_set,
|
||||
.con_font_default = sticon_font_default,
|
||||
.con_build_attr = sticon_build_attr,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user