add regulator debug message
Signed-off-by: August <mingxin.android@gmail.com>
This commit is contained in:
parent
eb4a71eecb
commit
655e737934
1 changed files with 4 additions and 0 deletions
|
@ -2727,6 +2727,8 @@ int regulator_enable(struct regulator *regulator)
|
|||
axp_add_enabler(rdev, regulator->supply_name);
|
||||
#endif
|
||||
|
||||
pr_info("%s:%s\n", __func__, regulator->supply_name);
|
||||
|
||||
if (rdev->supply) {
|
||||
ret = regulator_enable(rdev->supply);
|
||||
if (ret != 0)
|
||||
|
@ -2849,6 +2851,8 @@ int regulator_disable(struct regulator *regulator)
|
|||
axp_del_enabler(rdev, regulator->supply_name);
|
||||
#endif
|
||||
|
||||
pr_info("%s:%s\n", __func__, regulator->supply_name);
|
||||
|
||||
mutex_lock(&rdev->mutex);
|
||||
ret = _regulator_disable(rdev);
|
||||
mutex_unlock(&rdev->mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue