Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259997
b: refs/heads/master
c: 7104b5d
h: refs/heads/master
i:
  259995: 43e9d75
v: v3
  • Loading branch information
David Chang authored and Greg Kroah-Hartman committed Jul 6, 2011
1 parent c1b3fd8 commit f20eaf8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e8e30b8ded0f6fcc8ae63e2918e7353b76bdfa4b
refs/heads/master: 7104b5df5b2e53ef864e94556c1b3f63f6a56b70
16 changes: 8 additions & 8 deletions trunk/drivers/staging/usbip/userspace/src/usbipd.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <glib.h>
#include <signal.h>

#include "stub_driver.h"
#include "usbip_host_driver.h"
#include "usbip_common.h"
#include "usbip_network.h"

Expand All @@ -43,7 +43,7 @@ static int send_reply_devlist(int sockfd)
reply.ndev = 0;

/* how many devices are exported ? */
dlist_for_each_data(stub_driver->edev_list, edev, struct usbip_exported_device) {
dlist_for_each_data(host_driver->edev_list, edev, struct usbip_exported_device) {
reply.ndev += 1;
}

Expand All @@ -63,7 +63,7 @@ static int send_reply_devlist(int sockfd)
return ret;
}

dlist_for_each_data(stub_driver->edev_list, edev, struct usbip_exported_device) {
dlist_for_each_data(host_driver->edev_list, edev, struct usbip_exported_device) {
struct usbip_usb_device pdu_udev;

dump_usb_device(&edev->udev);
Expand Down Expand Up @@ -138,7 +138,7 @@ static int recv_request_import(int sockfd)

PACK_OP_IMPORT_REQUEST(0, &req);

dlist_for_each_data(stub_driver->edev_list, edev, struct usbip_exported_device) {
dlist_for_each_data(host_driver->edev_list, edev, struct usbip_exported_device) {
if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) {
dbg("found requested device %s", req.busid);
found = 1;
Expand All @@ -151,7 +151,7 @@ static int recv_request_import(int sockfd)
usbip_set_nodelay(sockfd);

/* export_device needs a TCP/IP socket descriptor */
ret = usbip_stub_export_device(edev, sockfd);
ret = usbip_host_export_device(edev, sockfd);
if (ret < 0)
error = 1;
} else {
Expand Down Expand Up @@ -197,7 +197,7 @@ static int recv_pdu(int sockfd)
}


ret = usbip_stub_refresh_device_list();
ret = usbip_host_refresh_device_list();
if (ret < 0)
return -1;

Expand Down Expand Up @@ -431,7 +431,7 @@ static void do_standalone_mode(gboolean daemonize)
if (ret)
err("open usb.ids");

ret = usbip_stub_driver_open();
ret = usbip_host_driver_open();
if (ret < 0)
g_error("driver open failed");

Expand Down Expand Up @@ -471,7 +471,7 @@ static void do_standalone_mode(gboolean daemonize)

freeaddrinfo(ai_head);
usbip_names_free();
usbip_stub_driver_close();
usbip_host_driver_close();

return;
}
Expand Down

0 comments on commit f20eaf8

Please sign in to comment.