]> sigrok.org Git - libsigrok.git/commitdiff
serial-dmm: sort the list of device drivers (part 10, group ut71x)
authorGerhard Sittig <redacted>
Sat, 5 Nov 2016 16:32:53 +0000 (17:32 +0100)
committerUwe Hermann <redacted>
Sun, 6 Nov 2016 13:43:44 +0000 (14:43 +0100)
This commit puts 'ut71x' meters into one group. Item order is kept to
reduce the diff size and simplify verification.

src/hardware/serial-dmm/api.c

index 8ccc4c1a069066e707c5b420b4b4e8b8cd082bc0..05a7d0cb395fc6e60500bc7518eaaace1358f70e 100644 (file)
@@ -515,13 +515,7 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers,
                NULL
        ),
        /* }}} */
-       /* meters based on other chips (to get sorted) */
-       DMM(
-               "voltcraft-vc870-ser", vc870,
-               "Voltcraft", "VC-870 (UT-D02 cable)", "9600/8n1/rts=0/dtr=1",
-               9600, VC870_PACKET_SIZE, 0, 0, NULL,
-               sr_vc870_packet_valid, sr_vc870_parse, NULL
-       ),
+       /* ut71x based meters {{{ */
        DMM(
                "voltcraft-vc920-ser", ut71x,
                "Voltcraft", "VC-920 (UT-D02 cable)", "2400/7o1/rts=0/dtr=1",
@@ -588,4 +582,12 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers,
                2400, UT71X_PACKET_SIZE, 0, 0, NULL,
                sr_ut71x_packet_valid, sr_ut71x_parse, NULL
        ),
+       /* }}} */
+       /* meters based on other chips (to get sorted) */
+       DMM(
+               "voltcraft-vc870-ser", vc870,
+               "Voltcraft", "VC-870 (UT-D02 cable)", "9600/8n1/rts=0/dtr=1",
+               9600, VC870_PACKET_SIZE, 0, 0, NULL,
+               sr_vc870_packet_valid, sr_vc870_parse, NULL
+       ),
 );