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
e11c4515
Commit
e11c4515
authored
Feb 19, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/max8998' into regulator-next
parents
6a244cad
c6163a70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
drivers/regulator/max8998.c
drivers/regulator/max8998.c
+1
-13
No files found.
drivers/regulator/max8998.c
View file @
e11c4515
...
...
@@ -311,25 +311,13 @@ static int max8998_set_voltage_buck_sel(struct regulator_dev *rdev,
dev_get_platdata
(
max8998
->
iodev
->
dev
);
struct
i2c_client
*
i2c
=
max8998
->
iodev
->
i2c
;
int
buck
=
rdev_get_id
(
rdev
);
int
reg
,
shift
=
0
,
mask
,
ret
;
int
j
,
previous_sel
;
int
reg
,
shift
=
0
,
mask
,
ret
,
j
;
static
u8
buck1_last_val
;
ret
=
max8998_get_voltage_register
(
rdev
,
&
reg
,
&
shift
,
&
mask
);
if
(
ret
)
return
ret
;
previous_sel
=
max8998_get_voltage_sel
(
rdev
);
/* Check if voltage needs to be changed */
/* if previous_voltage equal new voltage, return */
if
(
previous_sel
==
selector
)
{
dev_dbg
(
max8998
->
dev
,
"No voltage change, old:%d, new:%d
\n
"
,
regulator_list_voltage_linear
(
rdev
,
previous_sel
),
regulator_list_voltage_linear
(
rdev
,
selector
));
return
ret
;
}
switch
(
buck
)
{
case
MAX8998_BUCK1
:
dev_dbg
(
max8998
->
dev
,
...
...
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