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
8870d402
Commit
8870d402
authored
Mar 05, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/twl' into tmp
parents
b2d60949
6949fbe5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
drivers/regulator/twl-regulator.c
drivers/regulator/twl-regulator.c
+4
-5
No files found.
drivers/regulator/twl-regulator.c
View file @
8870d402
...
...
@@ -471,24 +471,23 @@ twl4030ldo_set_voltage_sel(struct regulator_dev *rdev, unsigned selector)
selector
);
}
static
int
twl4030ldo_get_voltage
(
struct
regulator_dev
*
rdev
)
static
int
twl4030ldo_get_voltage
_sel
(
struct
regulator_dev
*
rdev
)
{
struct
twlreg_info
*
info
=
rdev_get_drvdata
(
rdev
);
int
vsel
=
twlreg_read
(
info
,
TWL_MODULE_PM_RECEIVER
,
VREG_VOLTAGE
);
int
vsel
=
twlreg_read
(
info
,
TWL_MODULE_PM_RECEIVER
,
VREG_VOLTAGE
);
if
(
vsel
<
0
)
return
vsel
;
vsel
&=
info
->
table_len
-
1
;
return
LDO_MV
(
info
->
table
[
vsel
])
*
1000
;
return
vsel
;
}
static
struct
regulator_ops
twl4030ldo_ops
=
{
.
list_voltage
=
twl4030ldo_list_voltage
,
.
set_voltage_sel
=
twl4030ldo_set_voltage_sel
,
.
get_voltage
=
twl4030ldo_get_voltage
,
.
get_voltage
_sel
=
twl4030ldo_get_voltage_sel
,
.
enable
=
twl4030reg_enable
,
.
disable
=
twl4030reg_disable
,
...
...
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