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
a1ed63f4
Commit
a1ed63f4
authored
Jan 15, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/core' into tmp
parents
9931faca
0384618a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
drivers/regulator/core.c
drivers/regulator/core.c
+11
-4
No files found.
drivers/regulator/core.c
View file @
a1ed63f4
...
...
@@ -1885,9 +1885,15 @@ int regulator_can_change_voltage(struct regulator *regulator)
struct
regulator_dev
*
rdev
=
regulator
->
rdev
;
if
(
rdev
->
constraints
&&
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_VOLTAGE
&&
(
rdev
->
desc
->
n_voltages
-
rdev
->
desc
->
linear_min_sel
)
>
1
)
return
1
;
(
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_VOLTAGE
))
{
if
(
rdev
->
desc
->
n_voltages
-
rdev
->
desc
->
linear_min_sel
>
1
)
return
1
;
if
(
rdev
->
desc
->
continuous_voltage_range
&&
rdev
->
constraints
->
min_uV
&&
rdev
->
constraints
->
max_uV
&&
rdev
->
constraints
->
min_uV
!=
rdev
->
constraints
->
max_uV
)
return
1
;
}
return
0
;
}
...
...
@@ -3315,7 +3321,8 @@ static void rdev_init_debugfs(struct regulator_dev *rdev)
* @config: runtime configuration for regulator
*
* Called by regulator drivers to register a regulator.
* Returns 0 on success.
* Returns a valid pointer to struct regulator_dev on success
* or an ERR_PTR() on error.
*/
struct
regulator_dev
*
regulator_register
(
const
struct
regulator_desc
*
regulator_desc
,
...
...
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