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:
Ryan Lattrel 2019-07-10 15:54:17 -05:00 • committed by Yonghua Yan
commit ccfe95d60d

View file

@ -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;
}