All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keerthy <j-keerthy@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 04/12] power: regulator: max77686: get_enable should return integer
Date: Tue, 13 Jun 2017 09:53:48 +0530	[thread overview]
Message-ID: <1497327836-20900-5-git-send-email-j-keerthy@ti.com> (raw)
In-Reply-To: <1497327836-20900-1-git-send-email-j-keerthy@ti.com>

get_enable should be able to return error values. Hence change
the return type to integer.

Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 drivers/power/regulator/max77686.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator/max77686.c
index 5e5815f..8780806 100644
--- a/drivers/power/regulator/max77686.c
+++ b/drivers/power/regulator/max77686.c
@@ -688,7 +688,7 @@ static int ldo_set_value(struct udevice *dev, int uV)
 	return max77686_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;
@@ -752,7 +752,7 @@ static int buck_set_value(struct udevice *dev, int uV)
 	return max77686_buck_val(dev, PMIC_OP_SET, &uV);
 }
 
-static bool buck_get_enable(struct udevice *dev)
+static int buck_get_enable(struct udevice *dev)
 {
 	bool enable = false;
 	int ret;
-- 
1.9.1

  parent reply	other threads:[~2017-06-13  4:23 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170613042446epcas1p379f35d0a6dcd856536bf75d02095c918@epcas1p3.samsung.com>
2017-06-13  4:23 ` [U-Boot] [PATCH 00/12] regulator: Change get_enable return type to integer from bool Keerthy
2017-06-13  4:23   ` [U-Boot] [PATCH 01/12] " Keerthy
2017-06-17  3:40     ` Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 02/12] power: regulator: fixed: get_enable should return integer Keerthy
2017-06-17  3:40     ` Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 03/12] power: regulator: act8846: " Keerthy
2017-06-17  3:40     ` Simon Glass
2017-06-13  4:23   ` Keerthy [this message]
2017-06-17  3:40     ` [U-Boot] [PATCH 04/12] power: regulator: max77686: " Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 05/12] power: regulator: palmas: " Keerthy
2017-06-17  3:40     ` Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 06/12] power: regulator: pfuze100: " Keerthy
2017-06-17  3:40     ` Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 07/12] power: regulator: tps65090: " Keerthy
2017-06-17  3:41     ` Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 08/12] power: regulator: rk8xx: " Keerthy
2017-06-17  3:41     ` Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 09/12] power: sandbox: fixed: " Keerthy
2017-06-17  3:41     ` Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 10/12] power: regulator: s5m8767: " Keerthy
2017-06-17  3:41     ` Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 11/12] power: regulator: lp873x: " Keerthy
2017-06-17  3:41     ` Simon Glass
2017-06-13  4:23   ` [U-Boot] [PATCH 12/12] power: regulator: lp87565: " Keerthy
2017-06-17  3:41     ` Simon Glass
2017-06-25  2:18   ` [U-Boot] [PATCH 00/12] regulator: Change get_enable return type to integer from bool Keerthy
2017-06-26  7:35     ` Jaehoon Chung
2017-06-29  9:40   ` Jaehoon Chung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1497327836-20900-5-git-send-email-j-keerthy@ti.com \
    --to=j-keerthy@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.