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
nexedi
linux
Commits
f8c85fe1
Commit
f8c85fe1
authored
Dec 10, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/tps516312' into regulator-next
parents
f4244c68
dbc70518
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
drivers/regulator/tps51632-regulator.c
drivers/regulator/tps51632-regulator.c
+15
-0
No files found.
drivers/regulator/tps51632-regulator.c
View file @
f8c85fe1
...
...
@@ -236,6 +236,21 @@ static int tps51632_probe(struct i2c_client *client,
return
-
EINVAL
;
}
if
(
pdata
->
enable_pwm_dvfs
)
{
if
((
pdata
->
base_voltage_uV
<
TPS51632_MIN_VOLATGE
)
||
(
pdata
->
base_voltage_uV
>
TPS51632_MAX_VOLATGE
))
{
dev_err
(
&
client
->
dev
,
"Invalid base_voltage_uV setting
\n
"
);
return
-
EINVAL
;
}
if
((
pdata
->
max_voltage_uV
)
&&
((
pdata
->
max_voltage_uV
<
TPS51632_MIN_VOLATGE
)
||
(
pdata
->
max_voltage_uV
>
TPS51632_MAX_VOLATGE
)))
{
dev_err
(
&
client
->
dev
,
"Invalid max_voltage_uV setting
\n
"
);
return
-
EINVAL
;
}
}
tps
=
devm_kzalloc
(
&
client
->
dev
,
sizeof
(
*
tps
),
GFP_KERNEL
);
if
(
!
tps
)
{
dev_err
(
&
client
->
dev
,
"Memory allocation failed
\n
"
);
...
...
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