[PATCH v2 2/7] dummycon: Implement struct consw.con_unblank
From: Thomas Zimmermann
Date: Fri Oct 16 2026 - 05:45:12 EST
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@xxxxxxx>
---
drivers/video/console/dummycon.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/video/console/dummycon.c b/drivers/video/console/dummycon.c
index 7d02470f19b9..ea34a7e84472 100644
--- a/drivers/video/console/dummycon.c
+++ b/drivers/video/console/dummycon.c
@@ -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)
+{
+ 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)
+{
+ 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);
--
2.55.0