|
@@ -12424,8 +12424,8 @@ rescan:
|
|
|
pthread_join(info->probe_pth, NULL);
|
|
pthread_join(info->probe_pth, NULL);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
- struct driver_registration *reg, *tmp;
|
|
|
|
|
- BFG_FOREACH_DRIVER_BY_PRIORITY(reg, tmp)
|
|
|
|
|
|
|
+ struct driver_registration *reg;
|
|
|
|
|
+ BFG_FOREACH_DRIVER_BY_PRIORITY(reg)
|
|
|
{
|
|
{
|
|
|
const struct device_drv * const drv = reg->drv;
|
|
const struct device_drv * const drv = reg->drv;
|
|
|
if (!(drv_algo_check(drv) && drv->drv_detect))
|
|
if (!(drv_algo_check(drv) && drv->drv_detect))
|
|
@@ -12637,7 +12637,7 @@ void *probe_device_thread(void *p)
|
|
|
|
|
|
|
|
// if lowlevel device matches specific user assignment, probe requested driver(s)
|
|
// if lowlevel device matches specific user assignment, probe requested driver(s)
|
|
|
struct string_elist *sd_iter, *sd_tmp;
|
|
struct string_elist *sd_iter, *sd_tmp;
|
|
|
- struct driver_registration *dreg, *dreg_tmp;
|
|
|
|
|
|
|
+ struct driver_registration *dreg;
|
|
|
DL_FOREACH_SAFE(scan_devices, sd_iter, sd_tmp)
|
|
DL_FOREACH_SAFE(scan_devices, sd_iter, sd_tmp)
|
|
|
{
|
|
{
|
|
|
const char * const dname = sd_iter->string;
|
|
const char * const dname = sd_iter->string;
|
|
@@ -12655,8 +12655,7 @@ void *probe_device_thread(void *p)
|
|
|
memcpy(dname_nt, dname, dnamelen);
|
|
memcpy(dname_nt, dname, dnamelen);
|
|
|
dname_nt[dnamelen] = '\0';
|
|
dname_nt[dnamelen] = '\0';
|
|
|
|
|
|
|
|
- struct driver_registration *dreg, *dreg_tmp;
|
|
|
|
|
- BFG_FOREACH_DRIVER_BY_PRIORITY(dreg, dreg_tmp) {
|
|
|
|
|
|
|
+ BFG_FOREACH_DRIVER_BY_PRIORITY(dreg) {
|
|
|
const struct device_drv * const drv = dreg->drv;
|
|
const struct device_drv * const drv = dreg->drv;
|
|
|
if (!(drv && drv->lowl_probe && drv_algo_check(drv)))
|
|
if (!(drv && drv->lowl_probe && drv_algo_check(drv)))
|
|
|
continue;
|
|
continue;
|
|
@@ -12669,7 +12668,7 @@ void *probe_device_thread(void *p)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// probe driver(s) with auto enabled and matching VID/PID/Product/etc of device
|
|
// probe driver(s) with auto enabled and matching VID/PID/Product/etc of device
|
|
|
- BFG_FOREACH_DRIVER_BY_PRIORITY(dreg, dreg_tmp)
|
|
|
|
|
|
|
+ BFG_FOREACH_DRIVER_BY_PRIORITY(dreg)
|
|
|
{
|
|
{
|
|
|
const struct device_drv * const drv = dreg->drv;
|
|
const struct device_drv * const drv = dreg->drv;
|
|
|
|
|
|
|
@@ -12749,7 +12748,7 @@ void *probe_device_thread(void *p)
|
|
|
_probe_device_match(info, (dname[0] == '@') ? &dname[1] : dname))
|
|
_probe_device_match(info, (dname[0] == '@') ? &dname[1] : dname))
|
|
|
{
|
|
{
|
|
|
bool dont_rescan = false;
|
|
bool dont_rescan = false;
|
|
|
- BFG_FOREACH_DRIVER_BY_PRIORITY(dreg, dreg_tmp)
|
|
|
|
|
|
|
+ BFG_FOREACH_DRIVER_BY_PRIORITY(dreg)
|
|
|
{
|
|
{
|
|
|
const struct device_drv * const drv = dreg->drv;
|
|
const struct device_drv * const drv = dreg->drv;
|
|
|
if (!drv_algo_check(drv))
|
|
if (!drv_algo_check(drv))
|
|
@@ -12777,8 +12776,7 @@ void *probe_device_thread(void *p)
|
|
|
memcpy(dname_nt, dname, dnamelen);
|
|
memcpy(dname_nt, dname, dnamelen);
|
|
|
dname_nt[dnamelen] = '\0';
|
|
dname_nt[dnamelen] = '\0';
|
|
|
|
|
|
|
|
- struct driver_registration *dreg, *dreg_tmp;
|
|
|
|
|
- BFG_FOREACH_DRIVER_BY_PRIORITY(dreg, dreg_tmp) {
|
|
|
|
|
|
|
+ BFG_FOREACH_DRIVER_BY_PRIORITY(dreg) {
|
|
|
const struct device_drv * const drv = dreg->drv;
|
|
const struct device_drv * const drv = dreg->drv;
|
|
|
if (!(drv && drv->lowl_probe && drv_algo_check(drv)))
|
|
if (!(drv && drv->lowl_probe && drv_algo_check(drv)))
|
|
|
continue;
|
|
continue;
|