From 0f2194d82581b6a455f9b3dad6bb8b4db6ad9893 Mon Sep 17 00:00:00 2001 From: Keerthy Date: Tue, 13 Jun 2017 09:53:46 +0530 Subject: [PATCH] power: regulator: fixed: get_enable should return integer get_enable should be able to return error values. Hence change the return type to integer. Signed-off-by: Keerthy Reviewed-by: Simon Glass --- drivers/power/regulator/fixed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/regulator/fixed.c b/drivers/power/regulator/fixed.c index 656371b235..35c292222b 100644 --- a/drivers/power/regulator/fixed.c +++ b/drivers/power/regulator/fixed.c @@ -89,7 +89,7 @@ static int fixed_regulator_get_current(struct udevice *dev) return uc_pdata->min_uA; } -static bool fixed_regulator_get_enable(struct udevice *dev) +static int fixed_regulator_get_enable(struct udevice *dev) { struct fixed_regulator_platdata *dev_pdata = dev_get_platdata(dev); -- 2.39.5