From f66ad5ff8275412eab4c0bc4279764033ee81ad8 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Mon, 24 Feb 2020 13:10:54 +0900 Subject: [PATCH] Add software bezel control Change-Id: I6eb441abc0ea10e96d14bb3b4d7f114e0689efe3 Signed-off-by: Youngjae Cho --- hw/bezel.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/bezel.h b/hw/bezel.h index a908702..93a2ba6 100644 --- a/hw/bezel.h +++ b/hw/bezel.h @@ -37,9 +37,16 @@ enum bezel_state { struct bezel_device { struct hw_common common; - /* Control display state */ + /* Control hardware bezel or software bezel. + * They are mutually exclusive. If a pair of get/set function exists, + * the other pair must not. */ + + /* Control hardware bezel state */ int (*get_state)(enum bezel_state *state); int (*set_state)(enum bezel_state state); + /* Control software bezel state */ + int (*get_sw_state)(enum bezel_state *state); + int (*set_sw_state)(enum bezel_state state); }; #endif -- 2.34.1