- trigger_types = dev->driver->dev_info_get(0, SR_DI_TRIGGER_TYPES);
- if (!trigger_types) {
- sr_err("strutil: %s: Device doesn't support any triggers.",
- __func__);
+ if (sdi->driver->info_get(SR_DI_TRIGGER_TYPES,
+ (const void **)&trigger_types, sdi) != SR_OK) {
+ sr_err("strutil: %s: Device doesn't support any triggers.", __func__);