]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: regulator: lp873x: get_enable should return integer
authorKeerthy <j-keerthy@ti.com>
Tue, 13 Jun 2017 04:23:55 +0000 (09:53 +0530)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 19 Jul 2017 10:13:59 +0000 (19:13 +0900)
get_enable should be able to return error values. Hence change
the return type to integer.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/power/regulator/lp873x_regulator.c

index dcb19ff25cd6f7a5d25bed5b8cb6c57a060a490c..11371a7b8baaa2891f3aabc85ca62cb54c85f6c1 100644 (file)
@@ -256,7 +256,7 @@ static int ldo_set_value(struct udevice *dev, int uV)
        return lp873x_ldo_val(dev, PMIC_OP_SET, &uV);
 }
 
-static bool ldo_get_enable(struct udevice *dev)
+static int ldo_get_enable(struct udevice *dev)
 {
        bool enable = false;
        int ret;
@@ -310,7 +310,7 @@ static int buck_set_value(struct udevice *dev, int uV)
        return lp873x_buck_val(dev, PMIC_OP_SET, &uV);
 }
 
-static bool buck_get_enable(struct udevice *dev)
+static int buck_get_enable(struct udevice *dev)
 {
        bool enable = false;
        int ret;