aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-14 04:53:40 -0400
committerMark Brown <broonie@linaro.org>2013-10-15 08:37:56 -0400
commit4b57927045c30d8f8579a43177459782f45f5468 (patch)
tree41cd1b13543ebd1c5f91174e1e6a0d942bfee3ea
parent4ae1ff7fe8ad70dfe984ea7586ced00294359b47 (diff)
regulator: tps65910: Fix checkpatch issue
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> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--drivers/regulator/tps65910-regulator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c
index 95ebc67a3da4..10615d2a32e1 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)
481 481
482 /* multiplier 0 == 1 but 2,3 normal */ 482 /* multiplier 0 == 1 but 2,3 normal */
483 if (!mult) 483 if (!mult)
484 mult=1; 484 mult = 1;
485 485
486 if (sr) { 486 if (sr) {
487 /* normalise to valid range */ 487 /* normalise to valid range */
@@ -685,7 +685,7 @@ static int tps65910_list_voltage_dcdc(struct regulator_dev *dev,
685 case TPS65910_REG_VDD2: 685 case TPS65910_REG_VDD2:
686 mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; 686 mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1;
687 volt = VDD1_2_MIN_VOLT + 687 volt = VDD1_2_MIN_VOLT +
688 (selector % VDD1_2_NUM_VOLT_FINE) * VDD1_2_OFFSET; 688 (selector % VDD1_2_NUM_VOLT_FINE) * VDD1_2_OFFSET;
689 break; 689 break;
690 case TPS65911_REG_VDDCTRL: 690 case TPS65911_REG_VDDCTRL:
691 volt = VDDCTRL_MIN_VOLT + (selector * VDDCTRL_OFFSET); 691 volt = VDDCTRL_MIN_VOLT + (selector * VDDCTRL_OFFSET);
@@ -703,7 +703,7 @@ static int tps65911_list_voltage(struct regulator_dev *dev, unsigned selector)
703 struct tps65910_reg *pmic = rdev_get_drvdata(dev); 703 struct tps65910_reg *pmic = rdev_get_drvdata(dev);
704 int step_mv = 0, id = rdev_get_id(dev); 704 int step_mv = 0, id = rdev_get_id(dev);
705 705
706 switch(id) { 706 switch (id) {
707 case TPS65911_REG_LDO1: 707 case TPS65911_REG_LDO1:
708 case TPS65911_REG_LDO2: 708 case TPS65911_REG_LDO2:
709 case TPS65911_REG_LDO4: 709 case TPS65911_REG_LDO4:
@@ -1074,7 +1074,7 @@ static int tps65910_probe(struct platform_device *pdev)
1074 tps65910_reg_set_bits(pmic->mfd, TPS65910_DEVCTRL, 1074 tps65910_reg_set_bits(pmic->mfd, TPS65910_DEVCTRL,
1075 DEVCTRL_SR_CTL_I2C_SEL_MASK); 1075 DEVCTRL_SR_CTL_I2C_SEL_MASK);
1076 1076
1077 switch(tps65910_chip_id(tps65910)) { 1077 switch (tps65910_chip_id(tps65910)) {
1078 case TPS65910: 1078 case TPS65910:
1079 pmic->get_ctrl_reg = &tps65910_get_ctrl_register; 1079 pmic->get_ctrl_reg = &tps65910_get_ctrl_register;
1080 pmic->num_regulators = ARRAY_SIZE(tps65910_regs); 1080 pmic->num_regulators = ARRAY_SIZE(tps65910_regs);