From 20a7cd07c9d1460e335fc9c3e39378ab708ef4bc Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 18 Nov 2014 23:19:48 +0100 Subject: [PATCH] mic-985xx: Drop unneeded #define. --- src/hardware/mic-985xx/protocol.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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