dummycon: Implement struct consw.con_unblank

Implement con_unblank from struct consw as a duplicate of con_blank.
As dummycon does not do anything, the implementation only returns
true or false to trigger a redraw (or not).

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Thomas Zimmermann 2026-10-23 15:16:12 +02:00 committed by Helge Deller
parent dc2f8fbbe8
commit 4b04dbc869

View File

@ -86,6 +86,11 @@ static bool dummycon_blank(struct vc_data *vc, enum vesa_blank_mode blank,
return true;
}
static bool dummycon_unblank(struct vc_data *vc, bool mode_switch)
{
return true;
}
static bool dummycon_switch(struct vc_data *vc)
{
/*
@ -104,6 +109,12 @@ static bool dummycon_blank(struct vc_data *vc, enum vesa_blank_mode blank,
{
return false;
}
static bool dummycon_unblank(struct vc_data *vc, bool mode_switch)
{
return false;
}
static bool dummycon_switch(struct vc_data *vc)
{
return false;
@ -155,5 +166,6 @@ const struct consw dummy_con = {
.con_scroll = dummycon_scroll,
.con_switch = dummycon_switch,
.con_blank = dummycon_blank,
.con_unblank = dummycon_unblank,
};
EXPORT_SYMBOL_GPL(dummy_con);