diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2008-01-26 08:10:46 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-01-26 08:11:02 -0500 |
commit | db6a64238a927777e6e7b251927313f186455b1c (patch) | |
tree | 1c87902e01b7e0a67b81eb641392cd83717a8970 /drivers/s390/cio/io_sch.h | |
parent | b279a4f56d5476a0b9b0a97397f7a7bbe00b9b2f (diff) |
[S390] cio: Use dev_{g,s}et_drvdata().
Also define helpers sch_{g,s}et_cdev() to make the intention more
clear.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/io_sch.h')
-rw-r--r-- | drivers/s390/cio/io_sch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/cio/io_sch.h b/drivers/s390/cio/io_sch.h index d49e5a77a6bf..8c613160bfce 100644 --- a/drivers/s390/cio/io_sch.h +++ b/drivers/s390/cio/io_sch.h | |||
@@ -34,6 +34,8 @@ struct io_subchannel_private { | |||
34 | } __attribute__ ((aligned(8))); | 34 | } __attribute__ ((aligned(8))); |
35 | 35 | ||
36 | #define to_io_private(n) ((struct io_subchannel_private *)n->private) | 36 | #define to_io_private(n) ((struct io_subchannel_private *)n->private) |
37 | #define sch_get_cdev(n) (dev_get_drvdata(&n->dev)) | ||
38 | #define sch_set_cdev(n, c) (dev_set_drvdata(&n->dev, c)) | ||
37 | 39 | ||
38 | #define MAX_CIWS 8 | 40 | #define MAX_CIWS 8 |
39 | 41 | ||