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
9e150500
Commit
9e150500
authored
Nov 24, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: bugfix pattern data write
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
2851d975
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
fa-debug.c
software/kernel/fa-debug.c
+9
-1
No files found.
software/kernel/fa-debug.c
View file @
9e150500
...
...
@@ -228,12 +228,20 @@ static int fa_data_pattern_adc_write(struct fa_dev *fa, const char __user *buf,
}
}
#define CMD_SIZE 4UL
static
ssize_t
fa_data_pattern_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
fa_dev
*
fa
=
file
->
private_data
;
char
buf_l
[
CMD_SIZE
];
int
err
;
memset
(
buf_l
,
0
,
CMD_SIZE
);
err
=
copy_from_user
(
buf_l
,
buf
,
min
(
count
,
CMD_SIZE
));
if
(
err
)
return
err
;
if
(
strncmp
(
buf
,
"adc "
,
4
)
==
0
)
{
if
(
strncmp
(
buf
_l
,
"adc "
,
CMD_SIZE
)
==
0
)
{
int
err
;
err
=
fa_data_pattern_adc_write
(
fa
,
buf
+
4
,
count
-
4
);
...
...
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