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
ba2e284a
Commit
ba2e284a
authored
Aug 26, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv:spi: fix write operation argument order
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
00ffb4e3
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 @
ba2e284a
...
...
@@ -57,7 +57,7 @@ struct spi_ocores {
/* Register Access functions */
uint32_t
(
*
read
)(
struct
spi_ocores
*
sp
,
unsigned
int
reg
);
void
(
*
write
)(
struct
spi_ocores
*
sp
,
u
nsigned
int
reg
,
uint32_t
val
);
void
(
*
write
)(
struct
spi_ocores
*
sp
,
u
int32_t
val
,
unsigned
int
reg
);
};
enum
spi_ocores_type
{
...
...
@@ -71,7 +71,7 @@ static inline uint32_t spi_ocores_ioread32(struct spi_ocores *sp,
}
static
inline
void
spi_ocores_iowrite32
(
struct
spi_ocores
*
sp
,
unsigned
int
reg
,
uint32_t
val
)
uint32_t
val
,
unsigned
int
reg
)
{
iowrite32
(
val
,
sp
->
mem
+
reg
);
}
...
...
@@ -83,7 +83,7 @@ static inline uint32_t spi_ocores_ioread32be(struct spi_ocores *sp,
}
static
inline
void
spi_ocores_iowrite32be
(
struct
spi_ocores
*
sp
,
u
nsigned
int
reg
,
uint32_t
val
)
u
int32_t
val
,
unsigned
int
reg
)
{
iowrite32be
(
val
,
sp
->
mem
+
reg
);
}
...
...
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