Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
72d18a38
Commit
72d18a38
authored
Apr 28, 2023
by
Gwenhael Goavec-Merou
Committed by
Vaibhav Gupta
May 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/zio/devices/zio-ad788x: fix build with kernel >= 5.16.0 and 5.18.0
parent
2b143c97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
zio-ad788x.c
drivers/zio/devices/zio-ad788x.c
+10
-0
No files found.
drivers/zio/devices/zio-ad788x.c
View file @
72d18a38
...
...
@@ -221,7 +221,11 @@ static int ad788x_input_cset(struct zio_cset *cset)
spi_message_add_tail
(
&
context
->
transfer
,
&
context
->
message
);
/* start acquisition */
#if KERNEL_VERSION(5, 16, 0) > LINUX_VERSION_CODE
err
=
spi_async_locked
(
ad788x
->
spi
,
&
context
->
message
);
#else
err
=
spi_async
(
ad788x
->
spi
,
&
context
->
message
);
#endif
if
(
!
err
)
return
-
EAGAIN
;
...
...
@@ -379,7 +383,11 @@ static int ad788x_spi_probe(struct spi_device *spi)
return
err
;
}
#if KERNEL_VERSION(5, 18, 0) > LINUX_VERSION_CODE
static
int
ad788x_spi_remove
(
struct
spi_device
*
spi
)
#else
static
void
ad788x_spi_remove
(
struct
spi_device
*
spi
)
#endif
{
struct
zio_device
*
zdev
;
struct
ad788x
*
ad788x
;
...
...
@@ -390,7 +398,9 @@ static int ad788x_spi_remove(struct spi_device *spi)
zio_unregister_device
(
zdev
);
kfree
(
ad788x
);
zio_free_device
(
zdev
);
#if KERNEL_VERSION(5, 18, 0) > LINUX_VERSION_CODE
return
0
;
#endif
}
static
struct
spi_driver
ad788x_driver
=
{
...
...
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