Android驱动开发之earlysuspend睡眠模式编程总结
(1)添加头文件:#include (2)在特定驱动结构体中添加early_suspend结构:#ifdef CONFIG_HAS_EARLYSUSPENDstruct early_suspend early_suspend;#endif(3)在驱动probe函数中注册相关early_suspend结构体:#ifdef CONFIG_HAS_EARLYSUSPEND