X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fikalogic-scanaplus%2Fapi.c;h=6538dd966050d1ecad9f14e26b0d07fe3a346d6f;hb=58ffcf97121453fb53e885338e23e54c7ed78659;hp=ffec385cd3b15210c1f7dd9ecb9429268cecf777;hpb=463160cbca37367ef94dfead0c64531d82b83ab8;p=libsigrok.git diff --git a/src/hardware/ikalogic-scanaplus/api.c b/src/hardware/ikalogic-scanaplus/api.c index ffec385c..6538dd96 100644 --- a/src/hardware/ikalogic-scanaplus/api.c +++ b/src/hardware/ikalogic-scanaplus/api.c @@ -22,8 +22,6 @@ #define USB_VENDOR_ID 0x0403 #define USB_DEVICE_ID 0x6014 -#define USB_VENDOR_NAME "IKALOGIC" -#define USB_MODEL_NAME "ScanaPLUS" #define USB_IPRODUCT "SCANAPLUS" #define SAMPLE_BUF_SIZE (8 * 1024 * 1024) @@ -97,8 +95,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) sdi = g_malloc0(sizeof(struct sr_dev_inst)); sdi->status = SR_ST_INACTIVE; - sdi->vendor = g_strdup(USB_VENDOR_NAME); - sdi->model = g_strdup(USB_MODEL_NAME); + sdi->vendor = g_strdup("IKALOGIC"); + sdi->model = g_strdup("ScanaPLUS"); sdi->priv = devc; for (i = 0; i < ARRAY_SIZE(channel_names); i++) @@ -261,7 +259,7 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst * case SR_CONF_DEVICE_OPTIONS: return STD_CONFIG_LIST(key, data, sdi, cg, NULL, drvopts, devopts); case SR_CONF_SAMPLERATE: - *data = std_gvar_samplerates(samplerates, ARRAY_SIZE(samplerates)); + *data = std_gvar_samplerates(ARRAY_AND_SIZE(samplerates)); break; default: return SR_ERR_NA;