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
4c6f3c93
Commit
4c6f3c93
authored
Aug 13, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: remove useless function
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
c7a235a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
fa-calibration.c
kernel/fa-calibration.c
+2
-21
No files found.
kernel/fa-calibration.c
View file @
4c6f3c93
...
...
@@ -377,25 +377,6 @@ static void fa_identity_calib_set(struct fa_calib *calib)
fa_calib_le16_to_cpus
(
calib
);
}
/**
* Calculate calibrated values for offset and range using current values
* @fa: FMC ADC device
*/
static
void
fa_apply_calib
(
struct
fa_dev
*
fa
)
{
int
i
;
for
(
i
=
0
;
i
<
FA100M14B4C_NCHAN
;
++
i
)
{
struct
zio_channel
*
chan
=
&
fa
->
zdev
->
cset
->
chan
[
i
];
int
reg
=
zfad_get_chx_index
(
ZFA_CHx_CTL_RANGE
,
chan
->
index
);
int
range
=
fa_readl
(
fa
,
fa
->
fa_adc_csr_base
,
&
zfad_regs
[
reg
]);
fa_adc_range_set
(
fa
,
chan
,
zfad_convert_hw_range
(
range
));
fa_calib_config
(
fa
);
}
}
static
void
fa_calib_write
(
struct
fa_dev
*
fa
,
struct
fa_calib
*
calib
)
{
int
err
;
...
...
@@ -408,7 +389,7 @@ static void fa_calib_write(struct fa_dev *fa, struct fa_calib *calib)
}
else
{
memcpy
(
&
fa
->
calib
,
calib
,
sizeof
(
*
calib
));
}
fa_
apply_calib
(
fa
);
fa_
calib_config
(
fa
);
}
static
ssize_t
fa_write_eeprom
(
struct
file
*
file
,
struct
kobject
*
kobj
,
...
...
@@ -487,5 +468,5 @@ void fa_calib_exit(struct fa_dev *fa)
{
del_timer_sync
(
&
fa
->
calib_timer
);
fa_identity_calib_set
(
&
fa
->
calib
);
fa_
apply_calib
(
fa
);
fa_
calib_config
(
fa
);
}
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