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
9fa29574
Commit
9fa29574
authored
Jan 12, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/core' into regulator-next
parents
353915f0
70dc6daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
drivers/regulator/core.c
drivers/regulator/core.c
+4
-9
No files found.
drivers/regulator/core.c
View file @
9fa29574
...
...
@@ -2360,7 +2360,6 @@ static void regulator_disable_work(struct work_struct *work)
int
regulator_disable_deferred
(
struct
regulator
*
regulator
,
int
ms
)
{
struct
regulator_dev
*
rdev
=
regulator
->
rdev
;
int
ret
;
if
(
regulator
->
always_on
)
return
0
;
...
...
@@ -2372,13 +2371,9 @@ int regulator_disable_deferred(struct regulator *regulator, int ms)
rdev
->
deferred_disables
++
;
mutex_unlock
(
&
rdev
->
mutex
);
ret
=
queue_delayed_work
(
system_power_efficient_wq
,
&
rdev
->
disable_work
,
msecs_to_jiffies
(
ms
));
if
(
ret
<
0
)
return
ret
;
else
return
0
;
queue_delayed_work
(
system_power_efficient_wq
,
&
rdev
->
disable_work
,
msecs_to_jiffies
(
ms
));
return
0
;
}
EXPORT_SYMBOL_GPL
(
regulator_disable_deferred
);
...
...
@@ -3700,7 +3695,7 @@ static umode_t regulator_attr_is_visible(struct kobject *kobj,
struct
attribute
*
attr
,
int
idx
)
{
struct
device
*
dev
=
kobj_to_dev
(
kobj
);
struct
regulator_dev
*
rdev
=
container_of
(
dev
,
struct
regulator_dev
,
dev
);
struct
regulator_dev
*
rdev
=
dev_to_rdev
(
dev
);
const
struct
regulator_ops
*
ops
=
rdev
->
desc
->
ops
;
umode_t
mode
=
attr
->
mode
;
...
...
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