summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlokilee73 <changjoo.lee@samsung.com>2019-04-22 05:55:00 (GMT)
committerlokilee73 <changjoo.lee@samsung.com>2019-04-22 06:09:46 (GMT)
commitbaac40c90c62e6f74f1c53b6837020167c70c0f6 (patch)
treeae9c82389ccbd5a35b084e200a2c7dd8fb625679
parentc886f6109d9108d2478fddf3d2f0ee16abd05a50 (diff)
downloadlibdevice-node-baac40c90c62e6f74f1c53b6837020167c70c0f6.zip
libdevice-node-baac40c90c62e6f74f1c53b6837020167c70c0f6.tar.gz
libdevice-node-baac40c90c62e6f74f1c53b6837020167c70c0f6.tar.bz2
- freq_strength for wireless battery charging - set_multi_brightness for brightness change ex) set_multi_brightess(80, 5, 10ms) brightness is changed to 80 through 5 steps and 10ms delay is applied on each step - enum for display_aod_mode ex) It is to get infomation about always on mode Change-Id: I4d04d7e0c4bffa660845b924888e8fe8fd4b97e3 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rw-r--r--hw/battery.h2
-rw-r--r--hw/display.h11
2 files changed, 12 insertions, 1 deletions
diff --git a/hw/battery.h b/hw/battery.h
index 747f3c8..034680c 100644
--- a/hw/battery.h
+++ b/hw/battery.h
@@ -52,6 +52,8 @@ struct battery_info {
int voltage_now;
int voltage_average;
int temperature;
+
+ int freq_strength; /* charging frequency strength from charger */
};
typedef void (*BatteryUpdated)(struct battery_info *info, void *data);
diff --git a/hw/display.h b/hw/display.h
index 36593aa..087a2e1 100644
--- a/hw/display.h
+++ b/hw/display.h
@@ -54,6 +54,11 @@ enum display_panel_mode {
DISPLAY_PANEL_MODE_LOWPOWER, /* Low power mode */
};
+enum display_aod_mode {
+ DISPLAY_AOD_MODE_OFF,
+ DISPLAY_AOD_MODE_ON,
+};
+
struct display_device {
struct hw_common common;
@@ -61,6 +66,7 @@ struct display_device {
int (*get_max_brightness)(int *brightness);
int (*get_brightness)(int *brightness);
int (*set_brightness)(int brightness);
+ int (*set_multi_brightness)(int brightness, int step, int delay);
/* Control display brightness by sensor */
int (*get_auto_brightness)(float lmax, float lmin, float light, int *brightness);
@@ -73,10 +79,13 @@ struct display_device {
int (*get_image_effect)(enum display_image_effect *effect);
int (*set_image_effect)(enum display_image_effect effect);
- /* Control panel mode mode */
+ /* Control panel mode */
int (*get_panel_mode)(enum display_panel_mode *mode);
int (*set_panel_mode)(enum display_panel_mode mode);
+ /* Control AOD mode */
+ int (*get_aod_mode)(enum display_aod_mode *mode);
+
/* Control display frame rate */
int (*get_max_frame_rate)(int *rate);
int (*get_min_frame_rate)(int *rate);