Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha
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 ADC 100M 14b 4cha
Commits
e1b3c207
Commit
e1b3c207
authored
Mar 06, 2013
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmcadc-lib-route.c: trivial fix: rename cflags to cap_mask
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
0c98f168
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fmcadc-lib-route.c
lib/fmcadc-lib-route.c
+4
-4
No files found.
lib/fmcadc-lib-route.c
View file @
e1b3c207
...
...
@@ -168,7 +168,7 @@ int fmcadc_apply_config(struct fmcadc_dev *dev, unsigned int flags,
struct
fmcadc_conf
*
conf
)
{
struct
fmcadc_gid
*
b
=
(
void
*
)
dev
;
uint32_t
c
flags
;
uint32_t
c
ap_mask
;
if
(
!
conf
||
!
dev
)
{
/* conf and dev cannot be NULL*/
...
...
@@ -178,11 +178,11 @@ int fmcadc_apply_config(struct fmcadc_dev *dev, unsigned int flags,
if
(
!
conf
->
flags
)
return
0
;
/* Nothing to do */
c
flags
=
b
->
board
->
capabilities
[
conf
->
type
];
if
((
c
flags
&
conf
->
mask
)
!=
conf
->
mask
)
{
c
ap_mask
=
b
->
board
->
capabilities
[
conf
->
type
];
if
((
c
ap_mask
&
conf
->
mask
)
!=
conf
->
mask
)
{
/* Unsupported capabilities */
fprintf
(
stderr
,
"Apply Config, wrong mask 0x%x (0x%x)"
,
conf
->
mask
,
c
flags
);
conf
->
mask
,
c
ap_mask
);
errno
=
FMCADC_ENOCAP
;
return
-
1
;
}
...
...
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