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
e9a2179d
Commit
e9a2179d
authored
Nov 22, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gpio struct has changed in kernel 4.9
parent
a6f5a1c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
+33
-33
elphel393-pwr.c
src/drivers/elphel/elphel393-pwr.c
+33
-33
No files found.
src/drivers/elphel/elphel393-pwr.c
View file @
e9a2179d
...
@@ -1212,10 +1212,10 @@ static struct device * find_device_by_i2c_addr(int address)
...
@@ -1212,10 +1212,10 @@ static struct device * find_device_by_i2c_addr(int address)
static
int
i2c_addr_gpiochip_match
(
struct
gpio_chip
*
chip
,
void
*
data
)
static
int
i2c_addr_gpiochip_match
(
struct
gpio_chip
*
chip
,
void
*
data
)
{
{
struct
i2c_client
*
client
=
to_i2c_client
(
chip
->
dev
);
struct
i2c_client
*
client
=
to_i2c_client
(
chip
->
parent
);
int
*
addr
=
(
int
*
)
data
;
int
*
addr
=
(
int
*
)
data
;
dev_dbg
(
chip
->
dev
,
"addr_given=0x%02x, addr found=0x%02x
\n
"
,
addr
[
0
],(
int
)
client
->
addr
);
dev_dbg
(
chip
->
parent
,
"addr_given=0x%02x, addr found=0x%02x
\n
"
,
addr
[
0
],(
int
)
client
->
addr
);
return
i2c_verify_client
(
chip
->
dev
)
&&
(
client
->
addr
==
addr
[
0
]);
return
i2c_verify_client
(
chip
->
parent
)
&&
(
client
->
addr
==
addr
[
0
]);
}
}
static
void
shutdown
(
void
){
static
void
shutdown
(
void
){
...
...
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