xrt: Rename a prober-related define that wasn't namespaced.

This commit is contained in:
Ryan Pavlik 2021-11-10 12:14:27 -06:00 committed by Jakob Bornecrantz
parent 46fdb32991
commit b5bcea758d
4 changed files with 7 additions and 7 deletions
src/xrt
include/xrt
state_trackers/prober
targets/cli

View file

@ -42,7 +42,7 @@ struct os_hid_device;
*/
#define XRT_MAX_DEVICES_PER_PROBE 16
#define MAX_AUTO_PROBERS 16
#define XRT_MAX_AUTO_PROBERS 16
/*!
* Function pointer type for a handler that gets called when a device matching vendor and product ID is detected.

View file

@ -371,7 +371,7 @@ disable_drivers_from_conflicts(struct prober *p)
}
}
for (size_t ap = 0; ap < MAX_AUTO_PROBERS; ap++) {
for (size_t ap = 0; ap < XRT_MAX_AUTO_PROBERS; ap++) {
if (p->auto_probers[ap] == NULL) {
continue;
}
@ -484,7 +484,7 @@ initialize(struct prober *p, struct xrt_prober_entry_lists *lists)
return -1;
}
for (int i = 0; i < MAX_AUTO_PROBERS && lists->auto_probers[i]; i++) {
for (int i = 0; i < XRT_MAX_AUTO_PROBERS && lists->auto_probers[i]; i++) {
p->auto_probers[i] = lists->auto_probers[i]();
}
@ -582,7 +582,7 @@ teardown(struct prober *p)
u_var_remove_root((void *)p);
// Clean up all auto_probers.
for (int i = 0; i < MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
for (int i = 0; i < XRT_MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
p->auto_probers[i]->destroy(p->auto_probers[i]);
p->auto_probers[i] = NULL;
}
@ -702,7 +702,7 @@ add_from_devices(struct prober *p, struct xrt_device **xdevs, size_t xdev_count,
static void
add_from_auto_probers(struct prober *p, struct xrt_device **xdevs, size_t xdev_count, bool *have_hmd)
{
for (int i = 0; i < MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
for (int i = 0; i < XRT_MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
bool skip = false;
for (size_t disabled = 0; disabled < p->num_disabled_drivers; disabled++) {

View file

@ -142,7 +142,7 @@ struct prober
} uvc;
#endif
struct xrt_auto_prober *auto_probers[MAX_AUTO_PROBERS];
struct xrt_auto_prober *auto_probers[XRT_MAX_AUTO_PROBERS];
size_t device_count;
struct prober_device *devices;

View file

@ -76,7 +76,7 @@ cli_cmd_probe(int argc, const char **argv)
printf("\t%s\n", entries[i]->driver_name);
}
for (size_t i = 0; i < MAX_AUTO_PROBERS; i++) {
for (size_t i = 0; i < XRT_MAX_AUTO_PROBERS; i++) {
if (auto_probers[i] == NULL) {
continue;
}