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
ce3c0597
Commit
ce3c0597
authored
Nov 04, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/core' into regulator-next
parents
6a13feb9
7ebcf26c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/regulator/core.c
drivers/regulator/core.c
+4
-4
No files found.
drivers/regulator/core.c
View file @
ce3c0597
...
@@ -180,7 +180,7 @@ static int regulator_check_voltage(struct regulator_dev *rdev,
...
@@ -180,7 +180,7 @@ static int regulator_check_voltage(struct regulator_dev *rdev,
return
-
ENODEV
;
return
-
ENODEV
;
}
}
if
(
!
(
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_VOLTAGE
))
{
if
(
!
(
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_VOLTAGE
))
{
rdev_err
(
rdev
,
"operation not allowed
\n
"
);
rdev_err
(
rdev
,
"
voltage
operation not allowed
\n
"
);
return
-
EPERM
;
return
-
EPERM
;
}
}
...
@@ -240,7 +240,7 @@ static int regulator_check_current_limit(struct regulator_dev *rdev,
...
@@ -240,7 +240,7 @@ static int regulator_check_current_limit(struct regulator_dev *rdev,
return
-
ENODEV
;
return
-
ENODEV
;
}
}
if
(
!
(
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_CURRENT
))
{
if
(
!
(
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_CURRENT
))
{
rdev_err
(
rdev
,
"operation not allowed
\n
"
);
rdev_err
(
rdev
,
"
current
operation not allowed
\n
"
);
return
-
EPERM
;
return
-
EPERM
;
}
}
...
@@ -277,7 +277,7 @@ static int regulator_mode_constrain(struct regulator_dev *rdev, int *mode)
...
@@ -277,7 +277,7 @@ static int regulator_mode_constrain(struct regulator_dev *rdev, int *mode)
return
-
ENODEV
;
return
-
ENODEV
;
}
}
if
(
!
(
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_MODE
))
{
if
(
!
(
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_MODE
))
{
rdev_err
(
rdev
,
"operation not allowed
\n
"
);
rdev_err
(
rdev
,
"
mode
operation not allowed
\n
"
);
return
-
EPERM
;
return
-
EPERM
;
}
}
...
@@ -301,7 +301,7 @@ static int regulator_check_drms(struct regulator_dev *rdev)
...
@@ -301,7 +301,7 @@ static int regulator_check_drms(struct regulator_dev *rdev)
return
-
ENODEV
;
return
-
ENODEV
;
}
}
if
(
!
(
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_DRMS
))
{
if
(
!
(
rdev
->
constraints
->
valid_ops_mask
&
REGULATOR_CHANGE_DRMS
))
{
rdev_dbg
(
rdev
,
"operation not allowed
\n
"
);
rdev_dbg
(
rdev
,
"
drms
operation not allowed
\n
"
);
return
-
EPERM
;
return
-
EPERM
;
}
}
return
0
;
return
0
;
...
...
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