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

index d506165120865e1b760b6c1671772518b544792e..7d86aae32bbd9a72033a644af34bf869af21dde1 100644 (file)
@@ -115,7 +115,7 @@ static int reg_set_enable(struct udevice *dev, bool enable)
                               enable ? LDO_EN_MASK : 0);
 }
 
-static bool reg_get_enable(struct udevice *dev)
+static int reg_get_enable(struct udevice *dev)
 {
        int reg = dev->driver_data;
        int ret;