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
4c0c9cab
Commit
4c0c9cab
authored
Jun 24, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/palmas' into regulator-palmas
Conflicts: drivers/regulator/palmas-regulator.c
parents
d6f83370
5b01bd11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
drivers/regulator/palmas-regulator.c
drivers/regulator/palmas-regulator.c
+12
-0
No files found.
drivers/regulator/palmas-regulator.c
View file @
4c0c9cab
...
...
@@ -466,6 +466,10 @@ static int palmas_set_mode_smps(struct regulator_dev *dev, unsigned int mode)
if
(
rail_enable
)
palmas_smps_write
(
pmic
->
palmas
,
ddata
->
palmas_regs_info
[
id
].
ctrl_addr
,
reg
);
/* Switch the enable value to ensure this is used for enable */
pmic
->
desc
[
id
].
enable_val
=
pmic
->
current_reg_mode
[
id
];
return
0
;
}
...
...
@@ -1216,6 +1220,14 @@ static int palmas_smps_registration(struct palmas_pmic *pmic,
return
ret
;
pmic
->
current_reg_mode
[
id
]
=
reg
&
PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK
;
pmic
->
desc
[
id
].
enable_reg
=
PALMAS_BASE_TO_REG
(
PALMAS_SMPS_BASE
,
palmas_regs_info
[
id
].
ctrl_addr
);
pmic
->
desc
[
id
].
enable_mask
=
PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK
;
/* set_mode overrides this value */
pmic
->
desc
[
id
].
enable_val
=
SMPS_CTRL_MODE_ON
;
}
pmic
->
desc
[
id
].
type
=
REGULATOR_VOLTAGE
;
...
...
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