diff options
author | Douglas Anderson <dianders@chromium.org> | 2018-11-19 16:26:48 -0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-20 16:00:43 +0000 |
commit | 7b51a821211eb6217f60962c31f30cb73e30a0c7 (patch) | |
tree | b797115d054838e91f9cea980bcddca594ba1879 /drivers/regulator | |
parent | 9e6d9c9b737326d880e52ebe5a845f4afde378ea (diff) | |
download | linux-stable-7b51a821211eb6217f60962c31f30cb73e30a0c7.tar.gz linux-stable-7b51a821211eb6217f60962c31f30cb73e30a0c7.tar.bz2 linux-stable-7b51a821211eb6217f60962c31f30cb73e30a0c7.zip |
regulator: core: Properly expose requested_microamps in sysfs
The "requested_microamps" sysfs attribute was only being exposed for
"current" regulators. This didn't make sense. Allow it to be exposed
always.
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index d7ffd7b12472..ff5ca185bb8f 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -4565,10 +4565,6 @@ static umode_t regulator_attr_is_visible(struct kobject *kobj, if (attr == &dev_attr_bypass.attr) return ops->get_bypass ? mode : 0; - /* some attributes are type-specific */ - if (attr == &dev_attr_requested_microamps.attr) - return rdev->desc->type == REGULATOR_CURRENT ? mode : 0; - /* constraints need specific supporting methods */ if (attr == &dev_attr_min_microvolts.attr || attr == &dev_attr_max_microvolts.attr) |