]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/sclp: Define commands for storage (un)assignment
authorAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 10 Jun 2024 15:10:48 +0000 (17:10 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 18 Jun 2024 15:01:33 +0000 (17:01 +0200)
Replace immediate values with SCLP_CMDW_UN|ASSIGN_STORAGE defines.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20240610151048.2548428-1-agordeev@linux.ibm.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/char/sclp_cmd.c

index 7815e9bea69a1349a5b73a1aa556577cdf72b47c..f905a6643a0ff4a182ecd98e756736a32413a0e3 100644 (file)
@@ -31,6 +31,9 @@
 
 #include "sclp.h"
 
+#define SCLP_CMDW_ASSIGN_STORAGE       0x000d0001
+#define SCLP_CMDW_UNASSIGN_STORAGE     0x000c0001
+
 static void sclp_sync_callback(struct sclp_req *req, void *data)
 {
        struct completion *completion = data;
@@ -225,7 +228,7 @@ static int sclp_assign_storage(u16 rn)
        unsigned long long start;
        int rc;
 
-       rc = do_assign_storage(0x000d0001, rn);
+       rc = do_assign_storage(SCLP_CMDW_ASSIGN_STORAGE, rn);
        if (rc)
                return rc;
        start = rn2addr(rn);
@@ -235,7 +238,7 @@ static int sclp_assign_storage(u16 rn)
 
 static int sclp_unassign_storage(u16 rn)
 {
-       return do_assign_storage(0x000c0001, rn);
+       return do_assign_storage(SCLP_CMDW_UNASSIGN_STORAGE, rn);
 }
 
 struct attach_storage_sccb {