It replaces existing enum state_t of the deviced.
- S_START => DEVICED_DISPLAY_STATE_START
- S_NORMAL => DEVICED_DISPLAY_STATE_ON
- S_LCDON => DEVICED_DISPLAY_STATE_ON
- S_LCDDIM => DEVICED_DISPLAY_STATE_DIM
- S_LCDOFF => DEVICED_DISPLAY_STATE_OFF
- S_STANDBY => removed
- S_SLEEP => DEVICED_DISPLAY_STATE_SLEEP*
- S_SUSPEND => removed
- S_POWEROFF => removed
[*] Technically, the DEVICED_DISPLAY_STATE_SLEEP cannot be a state of
display. It should be a state of power, not display. However, current
code indiscriminately uses S_SLEEP state as one of the display state.
This will be fixed to make power module exclusively handle sleep, and
the enum itself will be removed accordingly.
The other removed enums are not being used.
Change-Id: I1f22379e730311c211b36cd516a020eadd730938
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
#define DEVICED_DISPLAY_ATTR_INT_GET_MAX_BRIGHTNESS (1ULL << 0)
+enum deviced_display_state {
+ DEVICED_DISPLAY_STATE_START,
+ DEVICED_DISPLAY_STATE_ON,
+ DEVICED_DISPLAY_STATE_DIM,
+ DEVICED_DISPLAY_STATE_OFF,
+ DEVICED_DISPLAY_STATE_SLEEP,
+ DEVICED_DISPLAY_STATE_END,
+};
+
#ifdef __cplusplus
}
#endif