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>
---
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);--
2.56.0