wacom: remove control device

It is unused, and it leads to an unexpected entry in the Input
preferences.

Change-Id: I68f31c3ae6baca7be1a5d6070dc1ebcf04522dad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2208
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Adrien Destugues 2020-02-05 15:02:56 +01:00 committed by waddlesplash
parent d5d32c48dc
commit 11d738a430

View File

@ -403,13 +403,6 @@ device_open(const char *dname, uint32 flags, void** cookie)
int n;
status_t ret = B_ERROR;
char controlDevicePath[1024];
sprintf(controlDevicePath, "%s%s", kBasePublishPath, "control");
if (strcmp(dname, controlDevicePath) == 0) {
dprintf(ID "device_open() -> refuse to open control device\n");
return B_ERROR;
}
n = atoi(dname + strlen(kBasePublishPath));
DPRINTF_INFO((ID "device_open(\"%s\",%d,...)\n", dname, flags));
@ -725,12 +718,7 @@ publish_devices()
i++;
}
}
// publish the currently fake control device
sDeviceNames[i] = (char*)malloc(strlen(kBasePublishPath) + 8);
if (sDeviceNames[i])
sprintf(sDeviceNames[i], "%s%s", kBasePublishPath, "control");
sDeviceNames[i + 1] = NULL;
sDeviceNames[i] = NULL;
}
release_sem(sDeviceListLock);