ANDROID: Allow vendor modules to get wakeup sources data.
Export wakeup_sources_stats_open to obtain wakeup source data, which is used to analyze the system standby power consumption problem and perform different processing for different wakeup sources. Bug: 410704199 Change-Id: I056f933dcc12cade514aba3d7095dc1fc375ad80 Signed-off-by: Bo Lan <lanbo@honor.com>
This commit is contained in:
@@ -1216,10 +1216,11 @@ static const struct seq_operations wakeup_sources_stats_seq_ops = {
|
||||
.show = wakeup_sources_stats_seq_show,
|
||||
};
|
||||
|
||||
static int wakeup_sources_stats_open(struct inode *inode, struct file *file)
|
||||
int wakeup_sources_stats_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return seq_open_private(file, &wakeup_sources_stats_seq_ops, sizeof(int));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(wakeup_sources_stats_open);
|
||||
|
||||
static const struct file_operations wakeup_sources_stats_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
|
||||
Reference in New Issue
Block a user