Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
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
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
FMC TDC 1ns 5cha - Software
Commits
9e9c05d3
Commit
9e9c05d3
authored
Aug 12, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: remove white space
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
273847ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
fmc-util.c
kernel/fmc-util.c
+7
-7
No files found.
kernel/fmc-util.c
View file @
9e9c05d3
...
...
@@ -42,7 +42,7 @@ static int traverse_sdb_devices(struct sdb_array *tree,
if
(
rv
>
0
)
return
1
;
}
if
(
r
->
empty
.
record_type
!=
sdb_type_device
)
continue
;
...
...
@@ -52,7 +52,7 @@ static int traverse_sdb_devices(struct sdb_array *tree,
vid
=
__be64_to_cpu
(
p
->
vendor_id
);
did
=
__be32_to_cpu
(
p
->
device_id
);
size
=
(
uint32_t
)
(
last
+
1
-
first
);
if
(
cb
(
first
+
tree
->
baseaddr
,
size
,
vid
,
did
))
return
1
;
}
...
...
@@ -60,7 +60,7 @@ static int traverse_sdb_devices(struct sdb_array *tree,
}
/* Finds the Nth SDB device that matches (vid/did) pair, where N <= *ordinal.
If N < *ordinal, the value of N is stored at *ordinal.
If N < *ordinal, the value of N is stored at *ordinal.
This magic is used to handle hybrid bistreams (with two or more different
mezzanines). */
...
...
@@ -69,14 +69,14 @@ signed long fmc_sdb_find_nth_device (struct sdb_array *tree, uint64_t vid, uint3
int
n
=
-
1
;
uint32_t
current_address
;
uint32_t
current_size
;
int
callback
(
uint32_t
address
,
uint32_t
size
,
uint64_t
vid_
,
uint32_t
did_
)
{
if
(
vid_
==
vid
&&
did_
==
did
)
{
n
++
;
current_address
=
address
;
current_size
=
size
;
current_size
=
size
;
if
(
!
ordinal
||
n
==
*
ordinal
)
{
...
...
@@ -97,6 +97,6 @@ signed long fmc_sdb_find_nth_device (struct sdb_array *tree, uint64_t vid, uint3
return
current_address
;
}
return
-
ENODEV
;
}
\ No newline at end of file
}
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