mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
regulator: qti-fixed-regulator: add support for debugfs control
Add support for debugfs control of a regulator's state. This is useful for testing and debugging. Change-Id: If400e15e25f29902261aa5d262baeee81b323dd5 Signed-off-by: David Collins <collinsd@codeaurora.org>
This commit is contained in:
parent
8e130374fe
commit
bb7c4cfc1e
|
|
@ -28,6 +28,7 @@
|
|||
#include <linux/of_device.h>
|
||||
#include <linux/regulator/of_regulator.h>
|
||||
#ifdef QTI_FIXED_REGULATOR
|
||||
#include <linux/regulator/debug-regulator.h>
|
||||
#include <linux/regulator/proxy-consumer.h>
|
||||
#endif
|
||||
#include <linux/regulator/machine.h>
|
||||
|
|
@ -185,6 +186,11 @@ static void qti_reg_fixed_voltage_init(struct device *dev,
|
|||
if (ret)
|
||||
dev_err(dev, "failed to register proxy consumer, ret=%d\n",
|
||||
ret);
|
||||
|
||||
ret = devm_regulator_debug_register(dev, rdev);
|
||||
if (ret)
|
||||
dev_err(dev, "failed to register debug regulator, ret=%d\n",
|
||||
ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user