|
@@ -32,6 +32,8 @@ static int fb_notifier_callback(struct notifier_block *self,
|
|
|
case FB_EVENT_BLANK:
|
|
|
case FB_EVENT_MODE_CHANGE:
|
|
|
case FB_EVENT_MODE_CHANGE_ALL:
|
|
|
+ case FB_EARLY_EVENT_BLANK:
|
|
|
+ case FB_R_EARLY_EVENT_BLANK:
|
|
|
break;
|
|
|
default:
|
|
|
return 0;
|
|
@@ -46,6 +48,14 @@ static int fb_notifier_callback(struct notifier_block *self,
|
|
|
if (event == FB_EVENT_BLANK) {
|
|
|
if (ld->ops->set_power)
|
|
|
ld->ops->set_power(ld, *(int *)evdata->data);
|
|
|
+ } else if (event == FB_EARLY_EVENT_BLANK) {
|
|
|
+ if (ld->ops->early_set_power)
|
|
|
+ ld->ops->early_set_power(ld,
|
|
|
+ *(int *)evdata->data);
|
|
|
+ } else if (event == FB_R_EARLY_EVENT_BLANK) {
|
|
|
+ if (ld->ops->r_early_set_power)
|
|
|
+ ld->ops->r_early_set_power(ld,
|
|
|
+ *(int *)evdata->data);
|
|
|
} else {
|
|
|
if (ld->ops->set_mode)
|
|
|
ld->ops->set_mode(ld, evdata->data);
|