Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d4d5cef6
Commit
d4d5cef6
authored
Oct 24, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/tps65910' into regulator-next
parents
2532a395
4b579270
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/regulator/tps65910-regulator.c
drivers/regulator/tps65910-regulator.c
+5
-5
No files found.
drivers/regulator/tps65910-regulator.c
View file @
d4d5cef6
...
...
@@ -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
:
...
...
@@ -982,7 +982,7 @@ static struct tps65910_board *tps65910_parse_dt_reg_data(
}
np
=
of_node_get
(
pdev
->
dev
.
parent
->
of_node
);
regulators
=
of_
find_node
_by_name
(
np
,
"regulators"
);
regulators
=
of_
get_child
_by_name
(
np
,
"regulators"
);
if
(
!
regulators
)
{
dev_err
(
&
pdev
->
dev
,
"regulator node not found
\n
"
);
return
NULL
;
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment