Commit 46389cd6 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

xrt: Send in real prober to auto probers

parent 59a2b87c
Pipeline #63786 passed with stages
in 1 minute
......@@ -51,9 +51,9 @@ oh_prober_destroy(struct xrt_auto_prober *p)
}
static struct xrt_device *
oh_prober_autoprobe(struct xrt_auto_prober *p)
oh_prober_autoprobe(struct xrt_auto_prober *xap, struct xrt_prober *xp)
{
struct oh_prober *ohp = oh_prober(p);
struct oh_prober *ohp = oh_prober(xap);
int device_idx = -1;
......
......@@ -69,9 +69,9 @@ psvr_prober_destroy(struct xrt_auto_prober *p)
}
static struct xrt_device *
psvr_prober_autoprobe(struct xrt_auto_prober *p)
psvr_prober_autoprobe(struct xrt_auto_prober *xap, struct xrt_prober *xp)
{
struct psvr_prober *ppsvr = psvr_prober(p);
struct psvr_prober *ppsvr = psvr_prober(xap);
struct hid_device_info *info_control = NULL;
struct hid_device_info *info_handle = NULL;
struct hid_device_info *cur_dev = NULL;
......
......@@ -301,8 +301,8 @@ xrt_prober_create_with_lists(struct xrt_prober **out_prober,
*/
struct xrt_auto_prober
{
struct xrt_device *(*lelo_dallas_autoprobe)(
struct xrt_auto_prober *xdev);
struct xrt_device *(*lelo_dallas_autoprobe)(struct xrt_auto_prober *xap,
struct xrt_prober *xp);
void (*destroy)(struct xrt_auto_prober *xdev);
};
......
......@@ -540,7 +540,7 @@ select_device(struct xrt_prober* xp,
for (int i = 0; i < MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
struct xrt_device* xdev =
p->auto_probers[i]->lelo_dallas_autoprobe(
p->auto_probers[i]);
p->auto_probers[i], xp);
if (xdev == NULL) {
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment