};
SR_PRIV struct sr_dev_driver ols_driver_info;
-static struct sr_dev_driver *odi = &ols_driver_info;
+static struct sr_dev_driver *di = &ols_driver_info;
static int send_shortcommand(struct sr_serial_dev_inst *serial,
uint8_t command)
guchar tmp_c;
sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, NULL, NULL, NULL);
- sdi->driver = odi;
+ sdi->driver = di;
devc = ols_dev_new();
sdi->priv = devc;
return SR_ERR_MALLOC;
}
drvc->sr_ctx = sr_ctx;
- odi->priv = drvc;
+ di->priv = drvc;
return SR_OK;
}
char buf[8];
(void)options;
- drvc = odi->priv;
+ drvc = di->priv;
devices = NULL;
conn = serialcomm = NULL;
/* Not an OLS -- some other board that uses the sump protocol. */
sdi = sr_dev_inst_new(0, SR_ST_INACTIVE,
"Sump", "Logic Analyzer", "v1.0");
- sdi->driver = odi;
+ sdi->driver = di;
devc = ols_dev_new();
for (i = 0; i < 32; i++) {
if (!(probe = sr_probe_new(i, SR_PROBE_LOGIC, TRUE,
{
struct drv_context *drvc;
- drvc = odi->priv;
+ drvc = di->priv;
return drvc->instances;
}
struct dev_context *devc;
int ret = SR_OK;
- if (!(drvc = odi->priv))
+ if (!(drvc = di->priv))
return SR_OK;
/* Properly close and free all devices. */
int num_channels, offset, i, j;
unsigned char byte;
- drvc = odi->priv;
+ drvc = di->priv;
/* Find this device's devc struct by its fd. */
devc = NULL;