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

index 2a0b8ca64236e83a86a86ecba46bb7889358f160..d908f6d1fb2c1e720237db153473dea49234a5ae 100644 (file)
@@ -166,7 +166,7 @@ static int buck_set_value(struct udevice *dev, int uV)
        return lp87565_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;