From: Uwe Hermann Date: Mon, 6 Jan 2014 19:53:12 +0000 (+0100) Subject: serial-dmm: Drop unused DMM_COUNT. X-Git-Tag: libsigrok-0.3.0~330 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=311622f69e35a1c82d76ece9995daf14d94c191f;p=libsigrok.git serial-dmm: Drop unused DMM_COUNT. --- diff --git a/hardware/serial-dmm/protocol.h b/hardware/serial-dmm/protocol.h index e313492f..8e065642 100644 --- a/hardware/serial-dmm/protocol.h +++ b/hardware/serial-dmm/protocol.h @@ -22,7 +22,6 @@ #define LOG_PREFIX "serial-dmm" -/* Note: When adding entries here, don't forget to update DMM_COUNT. */ enum { BBCGM_M2110, DIGITEK_DT4000ZC, @@ -57,8 +56,6 @@ enum { TENMA_72_7750_SER, }; -#define DMM_COUNT 31 - struct dmm_info { /** Manufacturer/brand. */ char *vendor; @@ -85,7 +82,7 @@ struct dmm_info { int (*receive_data)(int, int, void *); }; -extern SR_PRIV struct dmm_info dmms[DMM_COUNT]; +extern SR_PRIV struct dmm_info dmms[]; #define DMM_BUFSIZE 256