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

index 93a3c942d12059fbefd5b6fd08fa10ee1a85f151..871da122b4485c4fbf90cdb948051fc2591bfbae 100644 (file)
@@ -186,7 +186,7 @@ static int reg_set_enable(struct udevice *dev, const struct s5m8767_para *param,
        return ret;
 }
 
-static bool ldo_get_enable(struct udevice *dev)
+static int ldo_get_enable(struct udevice *dev)
 {
        int ldo = dev->driver_data;
 
@@ -226,7 +226,7 @@ static int buck_set_value(struct udevice *dev, int uv)
        return reg_set_value(dev, &buck_param[buck], uv);
 }
 
-static bool buck_get_enable(struct udevice *dev)
+static int buck_get_enable(struct udevice *dev)
 {
        int buck = dev->driver_data;