aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/chp.h
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2008-07-14 03:59:02 -0400
committerHeiko Carstens <heiko.carstens@de.ibm.com>2008-07-14 04:02:11 -0400
commit99611f87176b2a908d8c66ab19a5fc550a3cd13a (patch)
tree2c9898f347d00aeab5ffcbf74c90469efb86043e /drivers/s390/cio/chp.h
parent6ef556ccc8fd256259745c4f0d0ab65aaf703824 (diff)
[S390] cio: Repair chpid event handling.
Passing the affected chpid in chp_event() worked only by chance since chpid is the first element in res_acc_data. Make it work properly by generalizing res_acc_data as chp_link and always passing around a properly filled out chp_link structure in chp_event(). Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chp.h')
-rw-r--r--drivers/s390/cio/chp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/chp.h b/drivers/s390/cio/chp.h
index dffe2771ddac..26c3d2246176 100644
--- a/drivers/s390/cio/chp.h
+++ b/drivers/s390/cio/chp.h
@@ -24,7 +24,7 @@
24#define CHP_VARY_ON 2 24#define CHP_VARY_ON 2
25#define CHP_VARY_OFF 3 25#define CHP_VARY_OFF 3
26 26
27struct res_acc_data { 27struct chp_link {
28 struct chp_id chpid; 28 struct chp_id chpid;
29 u32 fla_mask; 29 u32 fla_mask;
30 u16 fla; 30 u16 fla;
@@ -60,5 +60,5 @@ int chp_new(struct chp_id chpid);
60void chp_cfg_schedule(struct chp_id chpid, int configure); 60void chp_cfg_schedule(struct chp_id chpid, int configure);
61void chp_cfg_cancel_deconfigure(struct chp_id chpid); 61void chp_cfg_cancel_deconfigure(struct chp_id chpid);
62int chp_info_get_status(struct chp_id chpid); 62int chp_info_get_status(struct chp_id chpid);
63int chp_ssd_get_mask(struct chsc_ssd_info *, struct res_acc_data *); 63int chp_ssd_get_mask(struct chsc_ssd_info *, struct chp_link *);
64#endif /* S390_CHP_H */ 64#endif /* S390_CHP_H */