Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
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 DEL 1ns 4cha - Software
Commits
aae635ab
Commit
aae635ab
authored
Oct 04, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portability fix: zdev->private_data is now zdev->priv_d
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
9544eebd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
fd-zio.c
fd-zio.c
+10
-10
No files found.
fd-zio.c
View file @
aae635ab
...
...
@@ -108,7 +108,7 @@ static int fd_zio_info_tdc(struct device *dev, struct zio_attribute *zattr,
struct
spec_fd
*
fd
;
cset
=
to_zio_cset
(
dev
);
fd
=
cset
->
zdev
->
priv
ate_data
;
fd
=
cset
->
zdev
->
priv
_d
;
if
(
zattr
->
priv
.
addr
==
FD_ATTR_TDC_USER_OFF
)
{
*
usr_val
=
fd
->
calib
.
tdc_user_offset
;
...
...
@@ -135,7 +135,7 @@ static int fd_zio_info_output(struct device *dev, struct zio_attribute *zattr,
cset
=
to_zio_cset
(
dev
);
ch
=
cset
->
index
-
1
;
fd
=
cset
->
zdev
->
priv
ate_data
;
fd
=
cset
->
zdev
->
priv
_d
;
if
(
zattr
->
priv
.
addr
==
FD_ATTR_OUT_DELAY_OFF
)
{
*
usr_val
=
fd
->
calib
.
zero_offset
[
ch
];
...
...
@@ -195,7 +195,7 @@ static int fd_zio_info_get(struct device *dev, struct zio_attribute *zattr,
/* reading temperature */
zdev
=
to_zio_dev
(
dev
);
attr
=
zdev
->
zattr_set
.
ext_zattr
;
fd
=
zdev
->
priv
ate_data
;
fd
=
zdev
->
priv
_d
;
if
(
zattr
->
priv
.
addr
==
FD_ATTR_DEV_TEMP
)
{
attr
[
FD_ATTR_DEV_TEMP
].
value
=
fd_read_temp
(
fd
,
0
);
...
...
@@ -223,7 +223,7 @@ static int fd_zio_conf_tdc(struct device *dev, struct zio_attribute *zattr,
int
change
;
cset
=
to_zio_cset
(
dev
);
fd
=
cset
->
zdev
->
priv
ate_data
;
fd
=
cset
->
zdev
->
priv
_d
;
switch
(
zattr
->
priv
.
addr
)
{
...
...
@@ -285,7 +285,7 @@ static int fd_zio_conf_output(struct device *dev, struct zio_attribute *zattr,
int
ch
;
cset
=
to_zio_cset
(
dev
);
fd
=
cset
->
zdev
->
priv
ate_data
;
fd
=
cset
->
zdev
->
priv
_d
;
ch
=
cset
->
index
-
1
;
if
(
zattr
->
priv
.
addr
==
FD_ATTR_OUT_DELAY_OFF
)
{
...
...
@@ -316,7 +316,7 @@ static int fd_zio_conf_set(struct device *dev, struct zio_attribute *zattr,
/* Remains: wholedev */
zdev
=
to_zio_dev
(
dev
);
attr
=
zdev
->
zattr_set
.
ext_zattr
;
fd
=
zdev
->
priv
ate_data
;
fd
=
zdev
->
priv
_d
;
if
(
zattr
->
priv
.
addr
==
FD_ATTR_DEV_UTC_H
)
{
/* writing utc-h calls an atomic set-time */
...
...
@@ -612,7 +612,7 @@ static int fd_zio_output(struct zio_cset *cset)
struct
spec_fd
*
fd
;
struct
zio_control
*
ctrl
;
fd
=
cset
->
zdev
->
priv
ate_data
;
fd
=
cset
->
zdev
->
priv
_d
;
ctrl
=
zio_get_ctrl
(
cset
->
chan
->
active_block
);
if
(
fd
->
verbose
>
1
)
{
...
...
@@ -639,7 +639,7 @@ static int fd_zio_output(struct zio_cset *cset)
static
int
fd_zio_input
(
struct
zio_cset
*
cset
)
{
struct
spec_fd
*
fd
;
fd
=
cset
->
zdev
->
priv
ate_data
;
fd
=
cset
->
zdev
->
priv
_d
;
/* Configure the device for input */
if
(
!
test_bit
(
FD_FLAG_DO_INPUT
,
&
fd
->
flags
))
{
...
...
@@ -667,7 +667,7 @@ static int fd_zio_probe(struct zio_device *zdev)
struct
spec_fd
*
fd
;
/* link the new device from the fd structure */
fd
=
zdev
->
priv
ate_data
;
fd
=
zdev
->
priv
_d
;
fd
->
zdev
=
zdev
;
fd
->
tdc_attrs
[
FD_CSET_INDEX
(
FD_ATTR_TDC_OFFSET
)]
=
\
...
...
@@ -811,7 +811,7 @@ int fd_zio_init(struct spec_fd *fd)
/* Mandatory fields */
fd
->
hwzdev
->
owner
=
THIS_MODULE
;
fd
->
hwzdev
->
priv
ate_data
=
fd
;
fd
->
hwzdev
->
priv
_d
=
fd
;
/* Our dev_id is bus+devfn */
pdev
=
fd
->
spec
->
pdev
;
...
...
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