*/
static const char *const signal_edge_names[] = { "r", "f" };
-SR_PRIV struct sr_dev_driver sysclk_lwla_driver_info;
-static struct sr_dev_driver *const di = &sysclk_lwla_driver_info;
-
static int init(struct sr_dev_driver *di, struct sr_context *sr_ctx)
{
return std_init(sr_ctx, di, LOG_PREFIX);
struct sr_usb_dev_inst *usb;
int ret;
- drvc = di->context;
+ drvc = sdi->driver->context;
if (!drvc) {
sr_err("Driver was not initialized.");
struct dev_context *devc;
int ret;
- if (!di->context) {
+ if (!sdi->driver->context) {
sr_err("Driver was not initialized.");
return SR_ERR;
}
return SR_ERR_DEV_CLOSED;
devc = sdi->priv;
- drvc = di->context;
+ drvc = sdi->driver->context;
if (devc->acquisition) {
sr_err("Acquisition still in progress?");