mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jingoo Han <jg1.han@samsung.com>
To: "'Mark Brown'" <broonie@kernel.org>
Cc: "'Liam Girdwood'" <lgirdwood@gmail.com>,
	linux-kernel@vger.kernel.org,
	"'Jingoo Han'" <jg1.han@samsung.com>,
	"'Laxman Dewangan'" <ldewangan@nvidia.com>
Subject: [PATCH 10/11] regulator: tps65910: Fix checkpatch issue
Date: Mon, 14 Oct 2013 17:53:40 +0900	[thread overview]
Message-ID: <000901cec8ba$e1393ca0$a3abb5e0$%han@samsung.com> (raw)
In-Reply-To: <000001cec8b9$931f4c90$b95de5b0$%han@samsung.com>

Fix the following checkpatch errors and warning.

  ERROR: spaces required around that '=' (ctx:VxV)
  ERROR: space required before the open parenthesis '('
  WARNING: line over 80 characters

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/regulator/tps65910-regulator.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c
index ccde074..23f8d1c 100644
--- a/drivers/regulator/tps65910-regulator.c
+++ b/drivers/regulator/tps65910-regulator.c
@@ -481,7 +481,7 @@ static int tps65910_get_voltage_dcdc_sel(struct regulator_dev *dev)
 
 	/* multiplier 0 == 1 but 2,3 normal */
 	if (!mult)
-		mult=1;
+		mult = 1;
 
 	if (sr) {
 		/* normalise to valid range */
@@ -685,7 +685,7 @@ static int tps65910_list_voltage_dcdc(struct regulator_dev *dev,
 	case TPS65910_REG_VDD2:
 		mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1;
 		volt = VDD1_2_MIN_VOLT +
-				(selector % VDD1_2_NUM_VOLT_FINE) * VDD1_2_OFFSET;
+			(selector % VDD1_2_NUM_VOLT_FINE) * VDD1_2_OFFSET;
 		break;
 	case TPS65911_REG_VDDCTRL:
 		volt = VDDCTRL_MIN_VOLT + (selector * VDDCTRL_OFFSET);
@@ -703,7 +703,7 @@ static int tps65911_list_voltage(struct regulator_dev *dev, unsigned selector)
 	struct tps65910_reg *pmic = rdev_get_drvdata(dev);
 	int step_mv = 0, id = rdev_get_id(dev);
 
-	switch(id) {
+	switch (id) {
 	case TPS65911_REG_LDO1:
 	case TPS65911_REG_LDO2:
 	case TPS65911_REG_LDO4:
@@ -1074,7 +1074,7 @@ static int tps65910_probe(struct platform_device *pdev)
 	tps65910_reg_set_bits(pmic->mfd, TPS65910_DEVCTRL,
 				DEVCTRL_SR_CTL_I2C_SEL_MASK);
 
-	switch(tps65910_chip_id(tps65910)) {
+	switch (tps65910_chip_id(tps65910)) {
 	case TPS65910:
 		pmic->get_ctrl_reg = &tps65910_get_ctrl_register;
 		pmic->num_regulators = ARRAY_SIZE(tps65910_regs);
-- 
1.7.10.4



  parent reply	other threads:[~2013-10-14  8:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-14  8:44 [PATCH 01/11] regulator: core: " Jingoo Han
2013-10-14  8:45 ` [PATCH 02/11] regulator: anatop: " Jingoo Han
2013-10-14  8:55   ` Shawn Guo
2013-10-15 12:21   ` Mark Brown
2013-10-14  8:46 ` [PATCH 03/11] regulator: fixed: " Jingoo Han
2013-10-15 12:22   ` Mark Brown
2013-10-14  8:47 ` [PATCH 04/11] regulator: lp3971: " Jingoo Han
2013-10-15 12:23   ` Mark Brown
2013-10-14  8:49 ` [PATCH 05/11] regulator: max8997: " Jingoo Han
2013-10-15 12:24   ` Mark Brown
2013-10-14  8:49 ` [PATCH 06/11] regulator: mc13783: " Jingoo Han
2013-10-15 12:25   ` Mark Brown
2013-10-14  8:51 ` [PATCH 07/11] regulator: mc13892: " Jingoo Han
2013-10-15 12:26   ` Mark Brown
2013-10-14  8:51 ` [PATCH 08/11] regulator: tps6105x: " Jingoo Han
2013-10-14  9:47   ` Linus Walleij
2013-10-14  8:52 ` [PATCH 09/11] regulator: tps65023: " Jingoo Han
2013-10-15 12:36   ` Mark Brown
2013-10-14  8:53 ` Jingoo Han [this message]
2013-10-15 12:38   ` [PATCH 10/11] regulator: tps65910: " Mark Brown
2013-10-14  8:55 ` [PATCH 11/11] regulator: twl: " Jingoo Han
2013-10-14 18:32   ` Nishanth Menon

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='000901cec8ba$e1393ca0$a3abb5e0$%han@samsung.com' \
    --to=jg1.han@samsung.com \
    --cc=broonie@kernel.org \
    --cc=ldewangan@nvidia.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®