aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/u_ether.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/gadget/u_ether.c b/drivers/usb/gadget/u_ether.c
index 4ec3c0d7a18b..a0aa721d8b21 100644
--- a/drivers/usb/gadget/u_ether.c
+++ b/drivers/usb/gadget/u_ether.c
@@ -159,12 +159,12 @@ static int ueth_change_mtu(struct net_device *net, int new_mtu)
159 159
160static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) 160static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p)
161{ 161{
162 struct eth_dev *dev = netdev_priv(net); 162 struct eth_dev *dev = netdev_priv(net);
163 163
164 strlcpy(p->driver, "g_ether", sizeof p->driver); 164 strlcpy(p->driver, "g_ether", sizeof(p->driver));
165 strlcpy(p->version, UETH__VERSION, sizeof p->version); 165 strlcpy(p->version, UETH__VERSION, sizeof(p->version));
166 strlcpy(p->fw_version, dev->gadget->name, sizeof p->fw_version); 166 strlcpy(p->fw_version, dev->gadget->name, sizeof(p->fw_version));
167 strlcpy(p->bus_info, dev_name(&dev->gadget->dev), sizeof p->bus_info); 167 strlcpy(p->bus_info, dev_name(&dev->gadget->dev), sizeof(p->bus_info));
168} 168}
169 169
170/* REVISIT can also support: 170/* REVISIT can also support: