From 4b04dbc869d357a98a185d3a9333a8d5d7a7e43b Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Fri, 23 Oct 2026 15:16:12 +0200 Subject: [PATCH] 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 Signed-off-by: Helge Deller --- 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..44856df84d99 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, 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);