]> sigrok.org Git - libsigrok.git/commitdiff
serial-dmm: Rename VOLTCRAFT_VC820 to VOLTCRAFT_VC820_SER.
authorUwe Hermann <redacted>
Wed, 19 Dec 2012 21:50:07 +0000 (22:50 +0100)
committerUwe Hermann <redacted>
Wed, 26 Dec 2012 01:11:00 +0000 (02:11 +0100)
This matches the _ser suffix of the other functions/variables for this
device ("ser" denotes that it is used with the serial UNI-T UT-D02 cable
as opposed the USB/HID based cables which are handled by the uni-t-dmm driver).

But more importantly, the _SER suffix for the enum value will prevent
name clashes later, when the uni-t-dmm driver gets a VOLTCRAFT_VC820 enum.

Do the same for VOLTCRAFT_VC840.

hardware/serial-dmm/api.c
hardware/serial-dmm/protocol.c
hardware/serial-dmm/protocol.h

index 1af637d107d31033222d96edb94fef88192af060..bb13110c726a15a159e7661c799215d75df65fe6 100644 (file)
@@ -145,14 +145,16 @@ SR_PRIV struct dmm_info dmms[] = {
                2400, FS9721_PACKET_SIZE, NULL,
                sr_fs9721_packet_valid, sr_fs9721_parse,
                NULL,
-               &voltcraft_vc820_ser_driver_info, receive_data_VOLTCRAFT_VC820,
+               &voltcraft_vc820_ser_driver_info,
+               receive_data_VOLTCRAFT_VC820_SER,
        },
        {
                "Voltcraft", "VC-840 (UT-D02 cable)", "2400/8n1/rts=0/dtr=1",
                2400, FS9721_PACKET_SIZE, NULL,
                sr_fs9721_packet_valid, sr_fs9721_parse,
                NULL,
-               &voltcraft_vc840_ser_driver_info, receive_data_VOLTCRAFT_VC840,
+               &voltcraft_vc840_ser_driver_info,
+               receive_data_VOLTCRAFT_VC840_SER,
        },
 };
 
@@ -551,5 +553,5 @@ DRV(peaktech_4370, PEAKTECH_4370, "peaktech-4370", "PeakTech 4370")
 DRV(pce_pce_dm32, PCE_PCE_DM32, "pce-pce-dm32", "PCE PCE-DM32")
 DRV(radioshack_22_168, RADIOSHACK_22_168, "radioshack-22-168", "RadioShack 22-168")
 DRV(radioshack_22_812, RADIOSHACK_22_812, "radioshack-22-812", "RadioShack 22-812")
-DRV(voltcraft_vc820_ser, VOLTCRAFT_VC820, "voltcraft-vc820-ser", "Voltcraft VC-820 (UT-D02 cable)")
-DRV(voltcraft_vc840_ser, VOLTCRAFT_VC840, "voltcraft-vc840-ser", "Voltcraft VC-840 (UT-D02 cable)")
+DRV(voltcraft_vc820_ser, VOLTCRAFT_VC820_SER, "voltcraft-vc820-ser", "Voltcraft VC-820 (UT-D02 cable)")
+DRV(voltcraft_vc840_ser, VOLTCRAFT_VC840_SER, "voltcraft-vc840-ser", "Voltcraft VC-840 (UT-D02 cable)")
index 19b355386cc7bd7471933d6ca7009d124a73a655..90c43c69725fe0c6dc517d9625ba4701305a2cb6 100644 (file)
@@ -213,5 +213,5 @@ RECEIVE_DATA(PEAKTECH_4370, metex14)
 RECEIVE_DATA(PCE_PCE_DM32, fs9721)
 RECEIVE_DATA(RADIOSHACK_22_168, metex14)
 RECEIVE_DATA(RADIOSHACK_22_812, rs9lcd)
-RECEIVE_DATA(VOLTCRAFT_VC820, fs9721)
-RECEIVE_DATA(VOLTCRAFT_VC840, fs9721)
+RECEIVE_DATA(VOLTCRAFT_VC820_SER, fs9721)
+RECEIVE_DATA(VOLTCRAFT_VC840_SER, fs9721)
index e719efd81e15f2783d9650153dde629e11cddf6a..a15469ec1a09f69d26ff7a20dfff4d232451c93a 100644 (file)
@@ -42,8 +42,8 @@ enum {
        PCE_PCE_DM32,
        RADIOSHACK_22_168,
        RADIOSHACK_22_812,
-       VOLTCRAFT_VC820,
-       VOLTCRAFT_VC840,
+       VOLTCRAFT_VC820_SER,
+       VOLTCRAFT_VC840_SER,
 };
 
 #define DMM_COUNT 13
@@ -101,8 +101,8 @@ SR_PRIV int receive_data_PEAKTECH_4370(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_PCE_PCE_DM32(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_RADIOSHACK_22_168(int fd, int revents, void *cb_data);
 SR_PRIV int receive_data_RADIOSHACK_22_812(int fd, int revents, void *cb_data);
-SR_PRIV int receive_data_VOLTCRAFT_VC820(int fd, int revents, void *cb_data);
-SR_PRIV int receive_data_VOLTCRAFT_VC840(int fd, int revents, void *cb_data);
+SR_PRIV int receive_data_VOLTCRAFT_VC820_SER(int fd, int revents, void *cb_data);
+SR_PRIV int receive_data_VOLTCRAFT_VC840_SER(int fd, int revents, void *cb_data);
 
 SR_PRIV void dmm_details_tp4000zc(struct sr_datafeed_analog *analog, void *info);
 SR_PRIV void dmm_details_dt4000zc(struct sr_datafeed_analog *analog, void *info);