From e34e02fd4918405cebc4fc468a54cb66c4e041f0 Mon Sep 17 00:00:00 2001 From: taeyoung Date: Thu, 7 Jul 2016 09:45:40 +0900 Subject: [PATCH] display: add getter for the maximum brightness of display - The maximum brightness of display varies according to the driver. Thus maximum brightness function is added for platform to adjust all cases. Change-Id: Iab3c2b82372b174d569487b7c85f2024185a89b5 Signed-off-by: taeyoung --- hw/display.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/display.h b/hw/display.h index a913d39..2dbdf46 100644 --- a/hw/display.h +++ b/hw/display.h @@ -62,7 +62,8 @@ enum display_panel_mode { struct display_device { struct hw_common common; - /* The brightness value is 0 to 100. */ + /* Control display brightness */ + int (*get_max_brightness)(int *brightness); int (*get_brightness)(int *brightness); int (*set_brightness)(int brightness); -- 2.34.1