uni-t-dmm: use new sr_config struct
This commit is contained in:
parent
1953564a96
commit
431ec7ca4a
|
@ -27,7 +27,7 @@
|
||||||
#define UNI_T_UT_D04_NEW "1a86.e008"
|
#define UNI_T_UT_D04_NEW "1a86.e008"
|
||||||
|
|
||||||
static const int hwopts[] = {
|
static const int hwopts[] = {
|
||||||
SR_HWOPT_CONN,
|
SR_CONF_CONN,
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ static GSList *hw_scan(GSList *options)
|
||||||
struct dev_context *devc;
|
struct dev_context *devc;
|
||||||
struct drv_context *drvc;
|
struct drv_context *drvc;
|
||||||
struct sr_usb_dev_inst *usb;
|
struct sr_usb_dev_inst *usb;
|
||||||
struct sr_hwopt *opt;
|
struct sr_config *src;
|
||||||
struct sr_probe *probe;
|
struct sr_probe *probe;
|
||||||
const char *conn;
|
const char *conn;
|
||||||
|
|
||||||
|
@ -106,10 +106,10 @@ static GSList *hw_scan(GSList *options)
|
||||||
|
|
||||||
conn = NULL;
|
conn = NULL;
|
||||||
for (l = options; l; l = l->next) {
|
for (l = options; l; l = l->next) {
|
||||||
opt = l->data;
|
src = l->data;
|
||||||
switch (opt->hwopt) {
|
switch (src->key) {
|
||||||
case SR_HWOPT_CONN:
|
case SR_CONF_CONN:
|
||||||
conn = opt->value;
|
conn = src->value;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue