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

index 841c03a5048a945854a9fe0f07cfb27f0860e65d..99614b0c58fb60cbc15ff98ce3ab3bc04148595d 100644 (file)
@@ -304,7 +304,7 @@ static int ldo_set_value(struct udevice *dev, int uV)
        return palmas_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;
@@ -411,7 +411,7 @@ static int smps_set_value(struct udevice *dev, int uV)
        return palmas_smps_val(dev, PMIC_OP_SET, &uV);
 }
 
-static bool smps_get_enable(struct udevice *dev)
+static int smps_get_enable(struct udevice *dev)
 {
        bool enable = false;
        int ret;