Skip to contentSkip to conversation

s390/sclp: define commands for storage (un)assignment

PATCH In review Alexander Gordeev 2 participants 2 messages Jun 10, 2024 s390

lore
Share & tools
lore

Alexander Gordeev

author maintainer
#0 lore raw

PATCH 1/1 s390/sclp: define commands for storage (un)assignment

Replace immediate values with SCLP_CMDW_UN|ASSIGN_STORAGE defines.

---
 drivers/s390/char/sclp_cmd.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/s390/char/sclp_cmd.c +5 -2
index 11c428f4c7cf..9741d849febb 100644
@@ -29,6 +29,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;
@@ -223,7 +226,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);
@@ -233,7 +236,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 {
Signature · 1 line
2.40.1