Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple PCIe FMC carrier SPEC
Commits
18e0511d
Commit
18e0511d
authored
Sep 02, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv:spi: minor style changes to pending function
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
7839a6aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spi-ocores.c
software/kernel/spi-ocores.c
+3
-3
No files found.
software/kernel/spi-ocores.c
View file @
18e0511d
...
...
@@ -531,9 +531,9 @@ static int spi_ocores_sw_xfer_next_start(struct spi_ocores *sp)
* @sp: SPI OCORE controller
* Return: True is there are still pending data in the current transfer
*/
static
bool
spi_ocores_sw_xfer_pending
(
struct
spi_ocores
*
sp
)
static
bool
spi_ocores_sw_xfer_
has_
pending
(
struct
spi_ocores
*
sp
)
{
return
sp
->
cur_len
;
return
sp
->
cur_len
>
0
;
}
/**
...
...
@@ -570,7 +570,7 @@ static int spi_ocores_process(struct spi_ocores *sp)
return
-
ENODATA
;
spi_ocores_hw_xfer_rx_pop
(
sp
);
if
(
spi_ocores_sw_xfer_pending
(
sp
))
{
if
(
spi_ocores_sw_xfer_
has_
pending
(
sp
))
{
spi_ocores_hw_xfer_tx_push
(
sp
);
spi_ocores_hw_xfer_start
(
sp
);
}
else
{
...
...
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