diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2008-01-26 08:10:38 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-01-26 08:10:56 -0500 |
commit | 084325d80418adf4d75b10a9ceff1348f2e09163 (patch) | |
tree | 5fef7966f632167f3ce7d48d2a230f787b14a1aa /drivers/s390/cio/css.h | |
parent | 14ff56bbb3422cc465a12e81f5e1b5f06168aeda (diff) |
[S390] cio: Use helpers instead of container_of().
- Introduce to_cssdriver.
- Use to_xxx instead of container_of where possible.
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/css.h')
-rw-r--r-- | drivers/s390/cio/css.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/cio/css.h b/drivers/s390/cio/css.h index 81215ef32435..1d8306cc74c4 100644 --- a/drivers/s390/cio/css.h +++ b/drivers/s390/cio/css.h | |||
@@ -134,6 +134,8 @@ struct css_driver { | |||
134 | void (*shutdown)(struct subchannel *); | 134 | void (*shutdown)(struct subchannel *); |
135 | }; | 135 | }; |
136 | 136 | ||
137 | #define to_cssdriver(n) container_of(n, struct css_driver, drv) | ||
138 | |||
137 | /* | 139 | /* |
138 | * all css_drivers have the css_bus_type | 140 | * all css_drivers have the css_bus_type |
139 | */ | 141 | */ |