]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: regulator: pfuze100: get_enable should return integer
authorKeerthy <j-keerthy@ti.com>
Tue, 13 Jun 2017 04:23:50 +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/pfuze100.c

index 02f38944453d9d9bc52ad257b007aee81d3f0a30..b3370af3d12adb89e64c3b6ccf7845050a767b62 100644 (file)
@@ -524,7 +524,7 @@ static int pfuze100_regulator_set_value(struct udevice *dev, int uV)
        return pfuze100_regulator_val(dev, PMIC_OP_SET, &uV);
 }
 
-static bool pfuze100_regulator_get_enable(struct udevice *dev)
+static int pfuze100_regulator_get_enable(struct udevice *dev)
 {
        int ret;
        bool enable = false;