]> sigrok.org Git - libsigrok.git/commitdiff
center-3xx: Drop unneeded #define.
authorUwe Hermann <redacted>
Tue, 18 Nov 2014 18:42:31 +0000 (19:42 +0100)
committerUwe Hermann <redacted>
Tue, 18 Nov 2014 22:20:09 +0000 (23:20 +0100)
src/hardware/center-3xx/protocol.h

index 71e2630df238a327b20726f22e544d1b33f84293..c920f32a3352e1e61edf1c4ded7be4318df07345 100644 (file)
 
 #define LOG_PREFIX "center-3xx"
 
-/* Note: When adding entries here, don't forget to update CENTER_DEV_COUNT. */
 enum {
        CENTER_309,
        VOLTCRAFT_K204,
 };
 
-#define CENTER_DEV_COUNT 2
-
 struct center_dev_info {
        char *vendor;
        char *device;
@@ -51,7 +48,7 @@ struct center_dev_info {
        int (*receive_data)(int, int, void *);
 };
 
-extern SR_PRIV const struct center_dev_info center_devs[CENTER_DEV_COUNT];
+extern SR_PRIV const struct center_dev_info center_devs[];
 
 #define SERIAL_BUFSIZE 256