struct hwcap_option hwcap_options[] = {
{HWCAP_SAMPLERATE, T_UINT64, "Sample rate", "samplerate"},
{HWCAP_CAPTURE_RATIO, T_UINT64, "Pre-trigger capture ratio", "captureratio"},
+ {HWCAP_PATTERN_MODE, T_CHAR, "Pattern generator mode", "patternmode"},
{0, 0, NULL, NULL},
};
extern struct device_plugin link_mso19_plugin_info;
#endif
-
/* TODO: No linked list needed, this can be a simple array. */
int load_hwplugins(void)
{
sdi->index = index;
sdi->status = status;
sdi->instance_type = -1;
- sdi->vendor = strdup(vendor);
- sdi->model = strdup(model);
- sdi->version = strdup(version);
+ sdi->vendor = vendor ? strdup(vendor) : strdup("(unknown)");
+ sdi->model = model ? strdup(model) : NULL;
+ sdi->version = version ? strdup(version) : NULL;
sdi->priv = NULL;
sdi->usb = NULL;
void usb_device_instance_free(struct usb_device_instance *usb)
{
- /* QUICK HACK */
+ /* Avoid compiler warnings. */
usb = usb;
/* Nothing to do for this device instance type. */