@@ -481,7 +481,7 @@ static int tps65910_get_voltage_dcdc_sel(struct regulator_dev *dev)
481481
482482 /* multiplier 0 == 1 but 2,3 normal */
483483 if (!mult )
484- mult = 1 ;
484+ mult = 1 ;
485485
486486 if (sr ) {
487487 /* normalise to valid range */
@@ -685,7 +685,7 @@ static int tps65910_list_voltage_dcdc(struct regulator_dev *dev,
685685 case TPS65910_REG_VDD2 :
686686 mult = (selector / VDD1_2_NUM_VOLT_FINE ) + 1 ;
687687 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 ;
689689 break ;
690690 case TPS65911_REG_VDDCTRL :
691691 volt = VDDCTRL_MIN_VOLT + (selector * VDDCTRL_OFFSET );
@@ -703,7 +703,7 @@ static int tps65911_list_voltage(struct regulator_dev *dev, unsigned selector)
703703 struct tps65910_reg * pmic = rdev_get_drvdata (dev );
704704 int step_mv = 0 , id = rdev_get_id (dev );
705705
706- switch (id ) {
706+ switch (id ) {
707707 case TPS65911_REG_LDO1 :
708708 case TPS65911_REG_LDO2 :
709709 case TPS65911_REG_LDO4 :
@@ -982,7 +982,7 @@ static struct tps65910_board *tps65910_parse_dt_reg_data(
982982 }
983983
984984 np = of_node_get (pdev -> dev .parent -> of_node );
985- regulators = of_find_node_by_name (np , "regulators" );
985+ regulators = of_get_child_by_name (np , "regulators" );
986986 if (!regulators ) {
987987 dev_err (& pdev -> dev , "regulator node not found\n" );
988988 return NULL ;
@@ -1074,7 +1074,7 @@ static int tps65910_probe(struct platform_device *pdev)
10741074 tps65910_reg_set_bits (pmic -> mfd , TPS65910_DEVCTRL ,
10751075 DEVCTRL_SR_CTL_I2C_SEL_MASK );
10761076
1077- switch (tps65910_chip_id (tps65910 )) {
1077+ switch (tps65910_chip_id (tps65910 )) {
10781078 case TPS65910 :
10791079 pmic -> get_ctrl_reg = & tps65910_get_ctrl_register ;
10801080 pmic -> num_regulators = ARRAY_SIZE (tps65910_regs );
0 commit comments