mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[S390] cio: Use ccw_dev_id and subchannel_id in ccw_device_private
Use the proper structures to identify device and subchannel. Change get_disc_ccwdev_by_devno() to get_disc_ccwdev_by_dev_id(). Signed-off-by: Cornelia Huck <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
715d854bc2
commit
7896426805
9 changed files with 62 additions and 53 deletions
|
|
@ -275,6 +275,12 @@ struct ccw_dev_id {
|
|||
u16 devno;
|
||||
};
|
||||
|
||||
static inline int ccw_dev_id_is_equal(struct ccw_dev_id *dev_id1,
|
||||
struct ccw_dev_id *dev_id2)
|
||||
{
|
||||
return !memcmp(dev_id1, dev_id2, sizeof(struct ccw_dev_id));
|
||||
}
|
||||
|
||||
extern int diag210(struct diag210 *addr);
|
||||
|
||||
extern void wait_cons_dev(void);
|
||||
|
|
|
|||
Loading…
Reference in a new issue