mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
regulator: fixed: Get the configured limit for a current-limited regulator
Change-Id: I0154cdcda406828aff7dcdf884e63e1c74992e4b Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
This commit is contained in:
@@ -157,7 +157,13 @@ of_get_fixed_voltage_config(struct device *dev,
|
||||
return config;
|
||||
}
|
||||
|
||||
static int fixed_voltage_get_current_limit(struct regulator_dev *rdev)
|
||||
{
|
||||
return rdev->constraints->max_uA;
|
||||
}
|
||||
|
||||
static const struct regulator_ops fixed_voltage_ops = {
|
||||
.get_current_limit = fixed_voltage_get_current_limit,
|
||||
};
|
||||
|
||||
static const struct regulator_ops fixed_voltage_clkenabled_ops = {
|
||||
|
||||
Reference in New Issue
Block a user