diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2007-05-10 09:45:42 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-05-10 09:45:51 -0400 |
commit | 9a92fe48b92993bb3d20fd7021e22a1ab8a473df (patch) | |
tree | dcef91794632296444c2ea400aba128c94edb375 /include/asm-s390/ccwdev.h | |
parent | 0b0bb3c6bd66bd28062a71c2ca3878d31e2081ee (diff) |
[S390] cio: Get rid of _ccw_device_get_device_number().
The function shouldn't have existed in the first place (not MSS-aware).
Introduce a new function ccw_device_get_id() that extracts the
ccw_dev_id structure of a ccw device and convert all users of
_ccw_device_get_device_number to ccw_device_get_id.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390/ccwdev.h')
-rw-r--r-- | include/asm-s390/ccwdev.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-s390/ccwdev.h b/include/asm-s390/ccwdev.h index 6795ecefd15b..4c2e1710f157 100644 --- a/include/asm-s390/ccwdev.h +++ b/include/asm-s390/ccwdev.h | |||
@@ -16,6 +16,7 @@ | |||
16 | /* structs from asm/cio.h */ | 16 | /* structs from asm/cio.h */ |
17 | struct irb; | 17 | struct irb; |
18 | struct ccw1; | 18 | struct ccw1; |
19 | struct ccw_dev_id; | ||
19 | 20 | ||
20 | /* simplified initializers for struct ccw_device: | 21 | /* simplified initializers for struct ccw_device: |
21 | * CCW_DEVICE and CCW_DEVICE_DEVTYPE initialize one | 22 | * CCW_DEVICE and CCW_DEVICE_DEVTYPE initialize one |
@@ -175,6 +176,7 @@ extern int ccw_device_set_offline(struct ccw_device *cdev); | |||
175 | 176 | ||
176 | extern struct ciw *ccw_device_get_ciw(struct ccw_device *, __u32 cmd); | 177 | extern struct ciw *ccw_device_get_ciw(struct ccw_device *, __u32 cmd); |
177 | extern __u8 ccw_device_get_path_mask(struct ccw_device *); | 178 | extern __u8 ccw_device_get_path_mask(struct ccw_device *); |
179 | extern void ccw_device_get_id(struct ccw_device *, struct ccw_dev_id *); | ||
178 | 180 | ||
179 | #define get_ccwdev_lock(x) (x)->ccwlock | 181 | #define get_ccwdev_lock(x) (x)->ccwlock |
180 | 182 | ||
@@ -184,7 +186,6 @@ extern __u8 ccw_device_get_path_mask(struct ccw_device *); | |||
184 | extern struct ccw_device *ccw_device_probe_console(void); | 186 | extern struct ccw_device *ccw_device_probe_console(void); |
185 | 187 | ||
186 | // FIXME: these have to go | 188 | // FIXME: these have to go |
187 | extern int _ccw_device_get_device_number(struct ccw_device *); | ||
188 | extern int _ccw_device_get_subchannel_number(struct ccw_device *); | 189 | extern int _ccw_device_get_subchannel_number(struct ccw_device *); |
189 | 190 | ||
190 | extern void *ccw_device_get_chp_desc(struct ccw_device *, int); | 191 | extern void *ccw_device_get_chp_desc(struct ccw_device *, int); |