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
fb2ff9c8
Commit
fb2ff9c8
authored
Feb 19, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: move calibration data attribute to device level
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
79c32cd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fa-zio-drv.c
kernel/fa-zio-drv.c
+2
-2
fau-calibration.c
tools/fau-calibration.c
+1
-1
No files found.
kernel/fa-zio-drv.c
View file @
fb2ff9c8
...
...
@@ -544,7 +544,7 @@ static int zfad_zio_probe(struct zio_device *zdev)
if
(
err
)
return
err
;
err
=
device_create_bin_file
(
&
zdev
->
cset
->
head
.
dev
,
&
dev_attr_calibration
);
err
=
device_create_bin_file
(
&
zdev
->
head
.
dev
,
&
dev_attr_calibration
);
if
(
err
)
return
err
;
...
...
@@ -560,7 +560,7 @@ static int zfad_zio_probe(struct zio_device *zdev)
*/
static
int
zfad_zio_remove
(
struct
zio_device
*
zdev
)
{
device_remove_bin_file
(
&
zdev
->
cset
->
head
.
dev
,
&
dev_attr_calibration
);
device_remove_bin_file
(
&
zdev
->
head
.
dev
,
&
dev_attr_calibration
);
return
0
;
}
...
...
tools/fau-calibration.c
View file @
fb2ff9c8
...
...
@@ -138,7 +138,7 @@ static int fau_calibration_write(unsigned int devid, struct fa_calib *calib)
int
ret
;
sprintf
(
path
,
"/sys/bus/zio/devices/adc-100m14b-%04x/c
set0/c
alibration_data"
,
"/sys/bus/zio/devices/adc-100m14b-%04x/calibration_data"
,
devid
);
/* Fix endianess */
...
...
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