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
0a192cc8
Commit
0a192cc8
authored
Jul 01, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/linar' into regulator-next
parents
39c9f80f
2a668a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
drivers/regulator/core.c
drivers/regulator/core.c
+15
-0
include/linux/regulator/consumer.h
include/linux/regulator/consumer.h
+1
-0
No files found.
drivers/regulator/core.c
View file @
0a192cc8
...
...
@@ -2137,6 +2137,21 @@ int regulator_list_voltage(struct regulator *regulator, unsigned selector)
}
EXPORT_SYMBOL_GPL
(
regulator_list_voltage
);
/**
* regulator_get_linear_step - return the voltage step size between VSEL values
* @regulator: regulator source
*
* Returns the voltage step size between VSEL values for linear
* regulators, or return 0 if the regulator isn't a linear regulator.
*/
unsigned
int
regulator_get_linear_step
(
struct
regulator
*
regulator
)
{
struct
regulator_dev
*
rdev
=
regulator
->
rdev
;
return
rdev
->
desc
->
uV_step
;
}
EXPORT_SYMBOL_GPL
(
regulator_get_linear_step
);
/**
* regulator_is_supported_voltage - check if a voltage range can be supported
*
...
...
include/linux/regulator/consumer.h
View file @
0a192cc8
...
...
@@ -165,6 +165,7 @@ int regulator_count_voltages(struct regulator *regulator);
int
regulator_list_voltage
(
struct
regulator
*
regulator
,
unsigned
selector
);
int
regulator_is_supported_voltage
(
struct
regulator
*
regulator
,
int
min_uV
,
int
max_uV
);
unsigned
int
regulator_get_linear_step
(
struct
regulator
*
regulator
);
int
regulator_set_voltage
(
struct
regulator
*
regulator
,
int
min_uV
,
int
max_uV
);
int
regulator_set_voltage_time
(
struct
regulator
*
regulator
,
int
old_uV
,
int
new_uV
);
...
...
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