path: root/drivers/s390/crypto/ap_bus.c
diff options
authorHarald Freudenberger <freude@linux.vnet.ibm.com>2017-10-30 12:10:54 +0100
committerHeiko Carstens <heiko.carstens@de.ibm.com>2017-11-09 16:54:26 +0100
commit56c5c6834e330caca7584445f4dc103515eb7175 (patch)
tree99d47efff24f19ee8c4603a31f51d78af23d4640 /drivers/s390/crypto/ap_bus.c
parenta401917bc3e2d251ce5210527d8de0b0b83f3b44 (diff)
s390/zcrypt: Rework struct ap_qact_ap_info.
The ap_qact_ap_info struct can get more easy handled when the fields in there can be accessed by their names but also the struct as a whole with just an unsigned long value. This patch reworks this struct to be a union and adapt the using code accordingly. Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/crypto/ap_bus.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c
index 0c1c48c476b7..8b5658b0bec3 100644
--- a/drivers/s390/crypto/ap_bus.c
+++ b/drivers/s390/crypto/ap_bus.c
@@ -1021,7 +1021,7 @@ static int ap_get_compatible_type(ap_qid_t qid, int rawtype, unsigned int func)
if (ap_qact_available()) {
struct ap_queue_status status;
- struct ap_qact_ap_info apinfo = {0};
+ union ap_qact_ap_info apinfo = {0};
apinfo.mode = (func >> 26) & 0x07;
apinfo.cat = AP_DEVICE_TYPE_CEX6;

Privacy Policy