Skip to content

Commit 447360d

Browse files
Alexander GordeevVasily Gorbik
authored andcommitted
s390/sclp: Define commands for storage (un)assignment
Replace immediate values with SCLP_CMDW_UN|ASSIGN_STORAGE defines. Acked-by: Heiko Carstens <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexander Gordeev <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 39976f1 commit 447360d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/s390/char/sclp_cmd.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131

3232
#include "sclp.h"
3333

34+
#define SCLP_CMDW_ASSIGN_STORAGE 0x000d0001
35+
#define SCLP_CMDW_UNASSIGN_STORAGE 0x000c0001
36+
3437
static void sclp_sync_callback(struct sclp_req *req, void *data)
3538
{
3639
struct completion *completion = data;
@@ -225,7 +228,7 @@ static int sclp_assign_storage(u16 rn)
225228
unsigned long long start;
226229
int rc;
227230

228-
rc = do_assign_storage(0x000d0001, rn);
231+
rc = do_assign_storage(SCLP_CMDW_ASSIGN_STORAGE, rn);
229232
if (rc)
230233
return rc;
231234
start = rn2addr(rn);
@@ -235,7 +238,7 @@ static int sclp_assign_storage(u16 rn)
235238

236239
static int sclp_unassign_storage(u16 rn)
237240
{
238-
return do_assign_storage(0x000c0001, rn);
241+
return do_assign_storage(SCLP_CMDW_UNASSIGN_STORAGE, rn);
239242
}
240243

241244
struct attach_storage_sccb {

0 commit comments

Comments
 (0)