Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46665
b: refs/heads/master
c: b3ebd52
h: refs/heads/master
i:
  46663: 35dbba1
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Feb 7, 2007
1 parent e034118 commit eff1a67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 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: b98b98f97c519894c64bf1bee6b7957e687dfc41
refs/heads/master: b3ebd5222141efa489d95592b7d4536766530e56
12 changes: 11 additions & 1 deletion trunk/drivers/usb/net/kaweth.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,12 +742,22 @@ static int kaweth_close(struct net_device *net)

static void kaweth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
{
struct kaweth_device *kaweth = netdev_priv(dev);

strlcpy(info->driver, driver_name, sizeof(info->driver));
usb_make_path(kaweth->dev, info->bus_info, sizeof (info->bus_info));
}

static u32 kaweth_get_link(struct net_device *dev)
{
struct kaweth_device *kaweth = netdev_priv(dev);

return kaweth->linkstate;
}

static struct ethtool_ops ops = {
.get_drvinfo = kaweth_get_drvinfo
.get_drvinfo = kaweth_get_drvinfo,
.get_link = kaweth_get_link
};

/****************************************************************
Expand Down

0 comments on commit eff1a67

Please sign in to comment.