[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>
This commit is contained in:
Cornelia Huck
2008-01-26 14:10:38 +01:00
committed by Martin Schwidefsky
parent 14ff56bbb3
commit 084325d804
3 changed files with 7 additions and 5 deletions

View File

@@ -134,6 +134,8 @@ struct css_driver {
void (*shutdown)(struct subchannel *);
};
#define to_cssdriver(n) container_of(n, struct css_driver, drv)
/*
* all css_drivers have the css_bus_type
*/