flag out the only scsi specific code
[fw/stlink] / src / test_sg.c
index 137eca4cf1a34e894ba60be8a75b32340c3ec7e2..a12ed1f409ffc6c057a54f98911ccf75dfd65c68 100644 (file)
@@ -6,8 +6,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <scsi/sg_lib.h>
-#include <scsi/sg_pt.h>
 #include "stlink-common.h"
 
 int main(int argc, char *argv[]) {
@@ -39,7 +37,7 @@ int main(int argc, char *argv[]) {
        fprintf(stderr, "Using sg_lib %s : scsi_pt %s\n", sg_lib_version(),
                scsi_pt_version());
 
-       stlink_t *sl = stlink_quirk_open(dev_name, scsi_verbose);
+       stlink_t *sl = stlink_v1_open(dev_name, scsi_verbose);
        if (sl == NULL)
                return EXIT_FAILURE;
 
@@ -210,4 +208,4 @@ int main(int argc, char *argv[]) {
 
        //fflush(stderr); fflush(stdout);
        return EXIT_SUCCESS;
-}
\ No newline at end of file
+}