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
882e3dba
Commit
882e3dba
authored
Sep 01, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/lp872x' into regulator-next
parents
bca3523b
37a6f43d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
drivers/regulator/lp872x.c
drivers/regulator/lp872x.c
+5
-4
No files found.
drivers/regulator/lp872x.c
View file @
882e3dba
...
...
@@ -373,7 +373,7 @@ static int lp8725_buck_set_current_limit(struct regulator_dev *rdev,
return
-
EINVAL
;
}
for
(
i
=
ARRAY_SIZE
(
lp8725_buck_uA
)
-
1
;
i
>=
0
;
i
--
)
{
for
(
i
=
ARRAY_SIZE
(
lp8725_buck_uA
)
-
1
;
i
>=
0
;
i
--
)
{
if
(
lp8725_buck_uA
[
i
]
>=
min_uA
&&
lp8725_buck_uA
[
i
]
<=
max_uA
)
return
lp872x_update_bits
(
lp
,
addr
,
...
...
@@ -787,7 +787,7 @@ static int lp872x_regulator_register(struct lp872x *lp)
struct
regulator_dev
*
rdev
;
int
i
,
ret
;
for
(
i
=
0
;
i
<
lp
->
num_regulators
;
i
++
)
{
for
(
i
=
0
;
i
<
lp
->
num_regulators
;
i
++
)
{
desc
=
(
lp
->
chipid
==
LP8720
)
?
&
lp8720_regulator_desc
[
i
]
:
&
lp8725_regulator_desc
[
i
];
...
...
@@ -820,7 +820,7 @@ static void lp872x_regulator_unregister(struct lp872x *lp)
struct
regulator_dev
*
rdev
;
int
i
;
for
(
i
=
0
;
i
<
lp
->
num_regulators
;
i
++
)
{
for
(
i
=
0
;
i
<
lp
->
num_regulators
;
i
++
)
{
rdev
=
*
(
lp
->
regulators
+
i
);
regulator_unregister
(
rdev
);
}
...
...
@@ -907,7 +907,8 @@ static struct lp872x_platform_data
goto
out
;
for
(
i
=
0
;
i
<
num_matches
;
i
++
)
{
pdata
->
regulator_data
[
i
].
id
=
(
int
)
match
[
i
].
driver_data
;
pdata
->
regulator_data
[
i
].
id
=
(
enum
lp872x_regulator_id
)
match
[
i
].
driver_data
;
pdata
->
regulator_data
[
i
].
init_data
=
match
[
i
].
init_data
;
/* Operation mode configuration for buck/buck1/buck2 */
...
...
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