Commit 7608538b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winebus.sys: Remove unnecessary internal bus ids.

parent 9e3f9408
...@@ -106,8 +106,6 @@ static IOHIDManagerRef hid_manager; ...@@ -106,8 +106,6 @@ static IOHIDManagerRef hid_manager;
static CFRunLoopRef run_loop; static CFRunLoopRef run_loop;
static struct list event_queue = LIST_INIT(event_queue); static struct list event_queue = LIST_INIT(event_queue);
static struct list device_list = LIST_INIT(device_list); static struct list device_list = LIST_INIT(device_list);
static const WCHAR busidW[] = {'I','O','H','I','D',0};
static struct iohid_bus_options options; static struct iohid_bus_options options;
struct platform_private struct platform_private
...@@ -266,7 +264,6 @@ static void handle_DeviceMatchingCallback(void *context, IOReturn result, void * ...@@ -266,7 +264,6 @@ static void handle_DeviceMatchingCallback(void *context, IOReturn result, void *
{ {
struct device_desc desc = struct device_desc desc =
{ {
.busid = busidW,
.input = -1, .input = -1,
.serialnumber = {"0000"}, .serialnumber = {"0000"},
}; };
......
...@@ -65,7 +65,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(plugplay); ...@@ -65,7 +65,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(plugplay);
WINE_DECLARE_DEBUG_CHANNEL(hid_report); WINE_DECLARE_DEBUG_CHANNEL(hid_report);
static pthread_mutex_t sdl_cs = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t sdl_cs = PTHREAD_MUTEX_INITIALIZER;
static const WCHAR sdl_busidW[] = {'S','D','L','J','O','Y',0};
static struct sdl_bus_options options; static struct sdl_bus_options options;
static void *sdl_handle = NULL; static void *sdl_handle = NULL;
...@@ -712,7 +711,6 @@ static void sdl_add_device(unsigned int index) ...@@ -712,7 +711,6 @@ static void sdl_add_device(unsigned int index)
{ {
struct device_desc desc = struct device_desc desc =
{ {
.busid = sdl_busidW,
.input = -1, .input = -1,
.manufacturer = {"SDL"}, .manufacturer = {"SDL"},
.serialnumber = {"0000"}, .serialnumber = {"0000"},
......
...@@ -100,9 +100,6 @@ static struct udev_monitor *udev_monitor; ...@@ -100,9 +100,6 @@ static struct udev_monitor *udev_monitor;
static int deviceloop_control[2]; static int deviceloop_control[2];
static struct list event_queue = LIST_INIT(event_queue); static struct list event_queue = LIST_INIT(event_queue);
static struct list device_list = LIST_INIT(device_list); static struct list device_list = LIST_INIT(device_list);
static const WCHAR hidraw_busidW[] = {'H','I','D','R','A','W',0};
static const WCHAR lnxev_busidW[] = {'L','N','X','E','V',0};
static struct udev_bus_options options; static struct udev_bus_options options;
struct platform_private struct platform_private
...@@ -985,7 +982,6 @@ static void udev_add_device(struct udev_device *dev) ...@@ -985,7 +982,6 @@ static void udev_add_device(struct udev_device *dev)
subsystem = udev_device_get_subsystem(dev); subsystem = udev_device_get_subsystem(dev);
if (!strcmp(subsystem, "hidraw")) if (!strcmp(subsystem, "hidraw"))
{ {
desc.busid = hidraw_busidW;
if (!desc.manufacturer[0]) strcpy(desc.manufacturer, "hidraw"); if (!desc.manufacturer[0]) strcpy(desc.manufacturer, "hidraw");
#ifdef HAVE_LINUX_HIDRAW_H #ifdef HAVE_LINUX_HIDRAW_H
...@@ -998,8 +994,6 @@ static void udev_add_device(struct udev_device *dev) ...@@ -998,8 +994,6 @@ static void udev_add_device(struct udev_device *dev)
{ {
struct input_id device_id = {0}; struct input_id device_id = {0};
desc.busid = lnxev_busidW;
if (ioctl(fd, EVIOCGID, &device_id) < 0) if (ioctl(fd, EVIOCGID, &device_id) < 0)
WARN("ioctl(EVIOCGID) failed: %d %s\n", errno, strerror(errno)); WARN("ioctl(EVIOCGID) failed: %d %s\n", errno, strerror(errno));
else else
......
...@@ -294,7 +294,7 @@ static DEVICE_OBJECT *bus_create_hid_device(struct device_desc *desc, struct uni ...@@ -294,7 +294,7 @@ static DEVICE_OBJECT *bus_create_hid_device(struct device_desc *desc, struct uni
TRACE("desc %s, unix_device %p\n", debugstr_device_desc(desc), unix_device); TRACE("desc %s, unix_device %p\n", debugstr_device_desc(desc), unix_device);
swprintf(dev_name, ARRAY_SIZE(dev_name), L"\\Device\\%s#%p", desc->busid, unix_device); swprintf(dev_name, ARRAY_SIZE(dev_name), L"\\Device\\WINEBUS#%p", unix_device);
RtlInitUnicodeString(&nameW, dev_name); RtlInitUnicodeString(&nameW, dev_name);
status = IoCreateDevice(driver_obj, sizeof(struct device_extension), &nameW, 0, 0, FALSE, &device); status = IoCreateDevice(driver_obj, sizeof(struct device_extension), &nameW, 0, 0, FALSE, &device);
if (status) if (status)
......
...@@ -139,10 +139,8 @@ static const struct unix_device_vtbl mouse_vtbl = ...@@ -139,10 +139,8 @@ static const struct unix_device_vtbl mouse_vtbl =
mouse_set_feature_report, mouse_set_feature_report,
}; };
static const WCHAR mouse_bus_id[] = {'W','I','N','E','M','O','U','S','E',0};
static const struct device_desc mouse_device_desc = static const struct device_desc mouse_device_desc =
{ {
.busid = mouse_bus_id,
.vid = 0x845e, .vid = 0x845e,
.pid = 0x0001, .pid = 0x0001,
.input = -1, .input = -1,
...@@ -239,10 +237,8 @@ static const struct unix_device_vtbl keyboard_vtbl = ...@@ -239,10 +237,8 @@ static const struct unix_device_vtbl keyboard_vtbl =
keyboard_set_feature_report, keyboard_set_feature_report,
}; };
static const WCHAR keyboard_bus_id[] = {'W','I','N','E','K','E','Y','B','O','A','R','D',0};
static const struct device_desc keyboard_device_desc = static const struct device_desc keyboard_device_desc =
{ {
.busid = keyboard_bus_id,
.vid = 0x845e, .vid = 0x845e,
.pid = 0x0002, .pid = 0x0002,
.input = -1, .input = -1,
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
struct device_desc struct device_desc
{ {
const WCHAR *busid;
DWORD vid; DWORD vid;
DWORD pid; DWORD pid;
DWORD version; DWORD version;
...@@ -139,9 +138,8 @@ enum unix_funcs ...@@ -139,9 +138,8 @@ enum unix_funcs
static inline const char *debugstr_device_desc(struct device_desc *desc) static inline const char *debugstr_device_desc(struct device_desc *desc)
{ {
if (!desc) return "(null)"; if (!desc) return "(null)";
return wine_dbg_sprintf("{busid %s, vid %04x, pid %04x, version %04x, input %d, uid %08x, is_gamepad %u}", return wine_dbg_sprintf("{vid %04x, pid %04x, version %04x, input %d, uid %08x, is_gamepad %u}",
debugstr_w(desc->busid), desc->vid, desc->pid, desc->version, desc->vid, desc->pid, desc->version, desc->input, desc->uid, desc->is_gamepad);
desc->input, desc->uid, desc->is_gamepad);
} }
#endif /* __WINEBUS_UNIXLIB_H */ #endif /* __WINEBUS_UNIXLIB_H */
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