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
3ca3fab5
Commit
3ca3fab5
authored
May 18, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed error reporting from gpio_10389 because it won't exist
parent
eec87189
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
elphel393-pwr.c
src/drivers/elphel/elphel393-pwr.c
+0
-10
No files found.
src/drivers/elphel/elphel393-pwr.c
View file @
3ca3fab5
...
@@ -288,8 +288,6 @@ static int get_enable(struct device *dev, int chn);
...
@@ -288,8 +288,6 @@ static int get_enable(struct device *dev, int chn);
static
int
set_enable
(
struct
device
*
dev
,
int
chn
,
int
enable
);
static
int
set_enable
(
struct
device
*
dev
,
int
chn
,
int
enable
);
static
int
get_pgood
(
struct
device
*
dev
,
int
chn
);
static
int
get_pgood
(
struct
device
*
dev
,
int
chn
);
static
struct
device
*
find_device_by_i2c_addr
(
int
address
);
static
int
i2c_addr_gpiochip_match
(
struct
gpio_chip
*
chip
,
void
*
data
);
int
gpio_10389_ctrl
(
struct
device
*
dev
,
int
value
);
int
gpio_10389_ctrl
(
struct
device
*
dev
,
int
value
);
/*
/*
...
@@ -657,14 +655,6 @@ int gpio_10389_ctrl(struct device *dev, int value){
...
@@ -657,14 +655,6 @@ int gpio_10389_ctrl(struct device *dev, int value){
int
i
,
res
;
int
i
,
res
;
int
val
=
0
;
int
val
=
0
;
struct
gpio_chip
*
chip
;
int
tmp_addr
=
GPIO_10389_U4_ADDR
;
chip
=
gpiochip_find
(
&
tmp_addr
,
i2c_addr_gpiochip_match
);
if
(
chip
==
NULL
)
{
pr_err
(
"10389 is not connected
\n
"
);
return
-
ENODEV
;
}
mutex_lock
(
&
gpio_10389_lock
);
mutex_lock
(
&
gpio_10389_lock
);
for
(
i
=
16
;
i
<
20
;
i
++
){
for
(
i
=
16
;
i
<
20
;
i
++
){
if
((
value
>>
(
i
-
8
))
&
0x1
){
if
((
value
>>
(
i
-
8
))
&
0x1
){
...
...
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