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
45aed88c
Commit
45aed88c
authored
Oct 18, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP drv: fix current value
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
5f5454af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
fa-zio-drv.c
kernel/fa-zio-drv.c
+1
-5
No files found.
kernel/fa-zio-drv.c
View file @
45aed88c
...
...
@@ -261,9 +261,6 @@ static int zfad_conf_set(struct device *dev, struct zio_attribute *zattr,
return
range
;
return
zfad_set_range
(
fa
,
to_zio_chan
(
dev
),
range
);
case
ZFA_CHx_STA
:
reg_index
=
zfad_get_chx_index
(
reg_index
,
to_zio_chan
(
dev
));
break
;
case
ZFA_UTC_COARSE
:
if
(
usr_val
>=
FA100M14B4C_UTC_CLOCK_FREQ
)
{
dev_err
(
fa
->
msgdev
,
...
...
@@ -349,14 +346,13 @@ static int zfad_info_get(struct device *dev, struct zio_attribute *zattr,
case
ZFA_CHx_CTL_RANGE
:
reg_index
=
zfad_get_chx_index
(
zattr
->
id
,
to_zio_chan
(
dev
));
break
;
case
ZFA_CHx_STA
:
reg_index
=
zfad_get_chx_index
(
zattr
->
id
,
to_zio_chan
(
dev
));
*
usr_val
=
fa_readl
(
fa
,
fa
->
fa_adc_csr_base
,
&
zfad_regs
[
reg_index
]);
i
=
(
int16_t
)(
*
usr_val
);
/* now signed integer */
*
usr_val
=
i
;
break
;
return
0
;
default:
reg_index
=
zattr
->
id
;
}
...
...
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