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
193aa822
Commit
193aa822
authored
Aug 13, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: reduce the number of debug prints
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
d7712bbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
fa-calibration.c
kernel/fa-calibration.c
+6
-10
No files found.
kernel/fa-calibration.c
View file @
193aa822
...
...
@@ -144,8 +144,9 @@ void fa_calib_adc_config_chan(struct fa_dev *fa, unsigned int chan,
if
(
unlikely
(
!
(
fa
->
flags
&
FA_DEV_F_PATTERN_DATA
)))
gain
=
fa_calib_adc_gain_fix
(
range
,
gain
,
delta_temp
);
dev_dbg
(
&
fa
->
pdev
->
dev
,
"%s: {chan: %d, range: %d, gain: 0x%x, offset: 0x%x}
\n
"
,
__func__
,
chan
,
range
,
gain
,
offset
);
dev_dbg
(
&
fa
->
pdev
->
dev
,
"%s: {temperature: %d, chan: %d, range: %d, gain: 0x%x, offset: 0x%x}
\n
"
,
__func__
,
temperature
,
chan
,
range
,
gain
,
offset
);
fa_calib_gain_set
(
fa
,
chan
,
gain
);
fa_calib_offset_set
(
fa
,
chan
,
offset
);
...
...
@@ -226,8 +227,9 @@ int fa_calib_dac_config_chan(struct fa_dev *fa, unsigned int chan,
if
(
unlikely
(
!
(
fa
->
flags
&
FA_DEV_F_PATTERN_DATA
)))
gain
=
fa_calib_dac_gain_fix
(
range
,
gain
,
delta_temp
);
dev_dbg
(
&
fa
->
pdev
->
dev
,
"%s: {chan: %d, range: %d, gain: 0x%x, offset: 0x%x}
\n
"
,
__func__
,
chan
,
range
,
gain
,
offset
);
dev_dbg
(
&
fa
->
pdev
->
dev
,
"%s: {temperature: %d, chan: %d, range: %d, gain: 0x%x, offset: 0x%x}
\n
"
,
__func__
,
temperature
,
chan
,
range
,
gain
,
offset
);
hwval
=
fa_dac_offset_raw_calibrate
(
off_uv_raw
,
gain
,
offset
);
return
fa_dac_offset_set
(
fa
,
chan
,
hwval
);
...
...
@@ -237,9 +239,6 @@ static void fa_calib_dac_config(struct fa_dev *fa, int32_t temperature)
{
int
i
;
dev_dbg
(
&
fa
->
pdev
->
dev
,
"%s: {temperature: %d}
\n
"
,
__func__
,
temperature
);
spin_lock
(
&
fa
->
zdev
->
cset
->
lock
);
for
(
i
=
0
;
i
<
FA100M14B4C_NCHAN
;
++
i
)
fa_calib_dac_config_chan
(
fa
,
i
,
temperature
);
...
...
@@ -251,9 +250,6 @@ static void fa_calib_adc_config(struct fa_dev *fa, int32_t temperature)
int
err
;
int
i
;
dev_dbg
(
&
fa
->
pdev
->
dev
,
"%s: {temperature: %d}
\n
"
,
__func__
,
temperature
);
spin_lock
(
&
fa
->
zdev
->
cset
->
lock
);
for
(
i
=
0
;
i
<
FA100M14B4C_NCHAN
;
++
i
)
fa_calib_adc_config_chan
(
fa
,
i
,
temperature
);
...
...
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