Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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 - Software
Commits
d7712bbb
Commit
d7712bbb
authored
Aug 13, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: the voltage range is irrelevant when using pattern
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
3a5af982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
fa-core.c
kernel/fa-core.c
+1
-2
No files found.
kernel/fa-core.c
View file @
d7712bbb
...
...
@@ -201,8 +201,7 @@ int fa_adc_range_set(struct fa_dev *fa, struct zio_channel *chan, int range)
i
=
zfad_get_chx_index
(
ZFA_CHx_CTL_RANGE
,
chan
->
index
);
fa_writel
(
fa
,
fa
->
fa_adc_csr_base
,
&
zfad_regs
[
i
],
zfad_hw_range
[
range
]);
if
(
range
==
FA100M14B4C_RANGE_OPEN
||
(
fa
->
flags
&
FA_DEV_F_PATTERN_DATA
))
if
(
range
==
FA100M14B4C_RANGE_OPEN
)
range
=
FA100M14B4C_RANGE_1V
;
else
if
(
range
>=
FA100M14B4C_RANGE_10V_CAL
)
range
-=
FA100M14B4C_RANGE_10V_CAL
;
...
...
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