mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
power: create charger_mmi debugfs dir
Kernel 4.9 is not able to lookup existing debugfs directories. Create a charger_mmi dir instead of adding to the charger dir instead. Change-Id: Ice155bc2eb60dc27b98c2af0876b9f9ced4f6f34 Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1384240 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com> Reviewed-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
3da8d50e42
commit
ccfe95d60d
1 changed files with 2 additions and 2 deletions
|
|
@ -3543,9 +3543,9 @@ static void smb_mmi_create_debugfs(struct smb_mmi_charger *chip)
|
|||
{
|
||||
struct dentry *dfs_root, *file;
|
||||
|
||||
dfs_root = debugfs_lookup("charger", NULL);
|
||||
dfs_root = debugfs_create_dir("charger_mmi", NULL);
|
||||
if (IS_ERR_OR_NULL(dfs_root)) {
|
||||
pr_err("Couldn't find charger debugfs rc=%ld\n",
|
||||
pr_err("Couldn't create charger debugfs rc=%ld\n",
|
||||
(long)dfs_root);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue