summaryrefslogtreecommitdiff
path: root/sys/dev/sdmmc
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-09-02 21:16:30 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-09-02 21:16:30 +0000
commit9c6ad5050b4e29663cd26a07838ebdaa3f9bd466 (patch)
tree8bb288bf6a66226afb6aafc5c05d8dc30d043b9f /sys/dev/sdmmc
parentdaf0537f196dfe9c78735ac5424c1f03e4a7fc4f (diff)
When building emulated INQUIRY results use the SCSI_REV_* #define's to
initialize the 'version' field. Not numbers.
Diffstat (limited to 'sys/dev/sdmmc')
-rw-r--r--sys/dev/sdmmc/sdmmc_scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c
index 537dcf9755f..4a5594d437d 100644
--- a/sys/dev/sdmmc/sdmmc_scsi.c
+++ b/sys/dev/sdmmc/sdmmc_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmc_scsi.c,v 1.54 2020/09/01 12:17:53 krw Exp $ */
+/* $OpenBSD: sdmmc_scsi.c,v 1.55 2020/09/02 21:16:29 krw Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -436,7 +436,7 @@ sdmmc_inquiry(struct scsi_xfer *xs)
memset(&inq, 0, sizeof inq);
inq.device = T_DIRECT;
inq.dev_qual2 = SID_REMOVABLE;
- inq.version = 2;
+ inq.version = SCSI_REV_2;
inq.response_format = 2;
inq.additional_length = 32;
memcpy(inq.vendor, vendor, sizeof(inq.vendor));