}
#endif
-int decon_update_pwr_state(struct decon_device *decon, u32 mode);
-
enum disp_pwr_mode {
DISP_PWR_OFF = 0,
DISP_PWR_DOZE,
DISP_PWR_MAX,
};
-typedef int (*set_pwr_state_t)(void *);
+int decon_update_pwr_state(struct decon_device *decon, enum disp_pwr_mode mode);
+
+typedef int (*set_pwr_state_t)(struct decon_device *);
struct disp_pwr_state {
- u32 state;
+ enum decon_state state;
set_pwr_state_t set_pwr_state;
};
},
};
-int decon_update_pwr_state(struct decon_device *decon, u32 mode)
+int decon_update_pwr_state(struct decon_device *decon, enum disp_pwr_mode mode)
{
int ret = 0;
}
}
- ret = decon_pwr_state[mode].set_pwr_state((void *)decon);
+ ret = decon_pwr_state[mode].set_pwr_state(decon);
+
if (ret < 0) {
decon_err("DECON:ERR:%s: failed to set mode(%d)\n",
__func__, mode);
bool active;
u32 crc_bit, crc_start;
u32 crc_data[2];
- u32 pwr;
struct decon_color_mode_info cm_info;
u32 cm_num;
struct decon_render_intents_num_info intents_num_info;
struct decon_render_intent_info intent_info;
struct decon_color_transform_info transform_info;
struct decon_color_mode_with_render_intent_info cm_intent_info;
+ enum disp_pwr_mode pwr;
decon_hiber_block_exit(decon);
switch (cmd) {