From: Uwe Hermann Date: Tue, 18 Nov 2014 22:19:48 +0000 (+0100) Subject: mic-985xx: Drop unneeded #define. X-Git-Tag: libsigrok-0.4.0~739 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=20a7cd07c9d1460e335fc9c3e39378ab708ef4bc;p=libsigrok.git mic-985xx: Drop unneeded #define. --- diff --git a/src/hardware/mic-985xx/protocol.h b/src/hardware/mic-985xx/protocol.h index 279cca5b..10d95d09 100644 --- a/src/hardware/mic-985xx/protocol.h +++ b/src/hardware/mic-985xx/protocol.h @@ -30,14 +30,11 @@ #define LOG_PREFIX "mic-985xx" -/* Note: When adding entries here, don't forget to update MIC_DEV_COUNT. */ enum { MIC_98581, MIC_98583, }; -#define MIC_DEV_COUNT 2 - struct mic_dev_info { char *vendor; char *device; @@ -51,7 +48,7 @@ struct mic_dev_info { int (*receive_data)(int, int, void *); }; -extern SR_PRIV const struct mic_dev_info mic_devs[MIC_DEV_COUNT]; +extern SR_PRIV const struct mic_dev_info mic_devs[]; #define SERIAL_BUFSIZE 256