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
5fc64724
Commit
5fc64724
authored
Aug 11, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: fix device rename
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
ce8f1ecc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fmctdc-lib.c
lib/fmctdc-lib.c
+2
-1
No files found.
lib/fmctdc-lib.c
View file @
5fc64724
...
@@ -72,7 +72,8 @@ int fmctdc_init(void)
...
@@ -72,7 +72,8 @@ int fmctdc_init(void)
/* trim the "-0-0-ctrl" at the end */
/* trim the "-0-0-ctrl" at the end */
b
->
devbase
[
strlen
(
b
->
devbase
)
-
strlen
(
"-0-0-ctrl"
)]
=
'\0'
;
b
->
devbase
[
strlen
(
b
->
devbase
)
-
strlen
(
"-0-0-ctrl"
)]
=
'\0'
;
/* extract dev_id */
/* extract dev_id */
sscanf
(
b
->
sysbase
,
"%*[^f]ft-%x"
,
&
b
->
dev_id
);
printf
(
"
\n\n
%s
\n\n
"
,
b
->
sysbase
);
sscanf
(
b
->
sysbase
,
"%*[^t]tdc-1n5c-%x"
,
&
b
->
dev_id
);
for
(
j
=
0
;
j
<
ARRAY_SIZE
(
b
->
fdc
);
j
++
)
{
for
(
j
=
0
;
j
<
ARRAY_SIZE
(
b
->
fdc
);
j
++
)
{
b
->
fdc
[
j
]
=
-
1
;
b
->
fdc
[
j
]
=
-
1
;
b
->
fdd
[
j
]
=
-
1
;
b
->
fdd
[
j
]
=
-
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