Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db58e9bd authored by Osvaldo Banuelos's avatar Osvaldo Banuelos Committed by Rohit Vaswani
Browse files

regulator: core: fix regulator bypass logic



Since the regulator debugfs consumer does not call
regulator_allow_bypass() on its regulator handles, regulators
will not be placed on bypass mode even if all other consumers
request for this. Fix this by introducing an open offset count
that can be used to selectively disregard the debugfs consumer.
Also, introduce a debugfs file to allow or disallow bypass
mode on each regulator by leveraging on the new open offset count.

Change-Id: If12534dac5e6b1c82acac9b5250137b4f816b922
Signed-off-by: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent 9a5aec1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment