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
0857702b
Commit
0857702b
authored
Jan 28, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: improve readability
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
170766f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ft-zio.c
kernel/ft-zio.c
+5
-3
No files found.
kernel/ft-zio.c
View file @
0857702b
...
...
@@ -184,7 +184,7 @@ static int ft_zio_conf_channel(struct device *dev, struct zio_attribute *zattr,
switch
(
zattr
->
id
)
{
case
FT_ATTR_TDC_TERMINATION
:
ft_enable_termination
(
ft
,
cset
->
index
+
1
,
usr_val
);
return
0
;
break
;
case
FT_ATTR_TDC_USER_OFFSET
:
user_offs
=
usr_val
;
...
...
@@ -194,15 +194,17 @@ static int ft_zio_conf_channel(struct device *dev, struct zio_attribute *zattr,
spin_lock
(
&
ft
->
lock
);
st
->
user_offset
=
usr_val
;
spin_unlock
(
&
ft
->
lock
);
return
0
;
break
;
case
FT_ATTR_TDC_DELAY_REF
:
if
(
usr_val
>
FT_NUM_CHANNELS
)
return
-
EINVAL
;
st
->
delay_reference
=
usr_val
;
break
;
default:
return
-
EINVAL
;
}
return
-
EINVAL
;
return
0
;
}
/*
...
...
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