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

index affc5040717a68a5a2227eafd69828b3a2e7a603..32aeab98e2c4cc700cbf78f8bb96d94358554a26 100644 (file)
@@ -23,7 +23,7 @@ static int tps65090_fet_probe(struct udevice *dev)
        return 0;
 }
 
-static bool tps65090_fet_get_enable(struct udevice *dev)
+static int tps65090_fet_get_enable(struct udevice *dev)
 {
        struct udevice *pmic = dev_get_parent(dev);
        int ret, fet_id;