From: Uwe Hermann Date: Tue, 18 Nov 2014 18:42:31 +0000 (+0100) Subject: center-3xx: Drop unneeded #define. X-Git-Tag: libsigrok-0.4.0~741 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=489c338884ee592635a9166907832ac39e8195a7;p=libsigrok.git center-3xx: Drop unneeded #define. --- diff --git a/src/hardware/center-3xx/protocol.h b/src/hardware/center-3xx/protocol.h index 71e2630d..c920f32a 100644 --- a/src/hardware/center-3xx/protocol.h +++ b/src/hardware/center-3xx/protocol.h @@ -31,14 +31,11 @@ #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