Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
5b0dfc76
Commit
5b0dfc76
authored
May 06, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments
parent
18813c2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
elphel393-pwr.c
src/drivers/elphel/elphel393-pwr.c
+4
-0
No files found.
src/drivers/elphel/elphel393-pwr.c
View file @
5b0dfc76
...
...
@@ -652,6 +652,8 @@ int gpio_10389_ctrl(struct device *dev, int value){
int
i
,
res
;
int
val
=
0
;
//lock here
//doesn't work
//mutex_lock(&dev->mutex);
for
(
i
=
16
;
i
<
20
;
i
++
){
if
((
value
>>
(
i
-
8
))
&
0x1
){
val
=
(
value
>>
(
i
-
16
))
&
0x1
;
...
...
@@ -662,6 +664,8 @@ int gpio_10389_ctrl(struct device *dev, int value){
}
}
//unlock somewhere here
//doesn't work
//mutex_unlock(&dev->mutex);
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