]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: regulator: Drop regulator_unset()
authorMarek Vasut <marex@denx.de>
Thu, 26 Sep 2024 23:14:14 +0000 (01:14 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 1 Oct 2024 01:19:07 +0000 (19:19 -0600)
This function is never called, drop it.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/power/regulator/regulator-uclass.c
include/power/regulator.h

index 9fcc4bd85b9b39d052c5c0daf3fcebb90f529a0f..4e83819ff73a4f05ca2973f8cd848736e3a5916a 100644 (file)
@@ -345,17 +345,6 @@ out:
        return ret;
 }
 
-int regulator_unset(struct udevice *dev)
-{
-       struct dm_regulator_uclass_plat *uc_pdata;
-
-       uc_pdata = dev_get_uclass_plat(dev);
-       if (uc_pdata && uc_pdata->force_off)
-               return regulator_set_enable(dev, false);
-
-       return -EMEDIUMTYPE;
-}
-
 static void regulator_show(struct udevice *dev, int ret)
 {
        struct dm_regulator_uclass_plat *uc_pdata;
index bb07a814c797f11e4240306914569cf5603a205b..5363483d02a048400c6e6813e390ee7143c500f4 100644 (file)
@@ -430,7 +430,7 @@ int regulators_enable_boot_on(bool verbose);
  *
  * This disables all regulators which are marked to be off at boot time.
  *
- * This effectively calls regulator_unset() for every regulator.
+ * This effectively does nothing.
  */
 int regulators_enable_boot_off(bool verbose);
 
@@ -453,18 +453,6 @@ int regulators_enable_boot_off(bool verbose);
  */
 int regulator_autoset(struct udevice *dev);
 
-/**
- * regulator_unset: turn off a regulator
- *
- * The setup depends on constraints found in device's uclass's platform data
- * (struct dm_regulator_uclass_platdata):
- *
- * - Disable - will set - if  'force_off' is set to true,
- *
- * The function returns on the first-encountered error.
- */
-int regulator_unset(struct udevice *dev);
-
 /**
  * regulator_autoset_by_name: setup the regulator given by its uclass's
  * platform data name field. The setup depends on constraints found in device's