ftmac100.c (db8c246937713e60b7628661ccc187eeb81f2bae) | ftmac100.c (7826d43f2db45c9305a6e0ba165650e1a203f517) |
---|---|
1/* 2 * Faraday FTMAC100 10/100 Ethernet 3 * 4 * (C) Copyright 2009-2011 Faraday Technology 5 * Po-Yu Chuang <ratbert@faraday-tech.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 806 unchanged lines hidden (view full) --- 815} 816 817/****************************************************************************** 818 * struct ethtool_ops functions 819 *****************************************************************************/ 820static void ftmac100_get_drvinfo(struct net_device *netdev, 821 struct ethtool_drvinfo *info) 822{ | 1/* 2 * Faraday FTMAC100 10/100 Ethernet 3 * 4 * (C) Copyright 2009-2011 Faraday Technology 5 * Po-Yu Chuang <ratbert@faraday-tech.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 806 unchanged lines hidden (view full) --- 815} 816 817/****************************************************************************** 818 * struct ethtool_ops functions 819 *****************************************************************************/ 820static void ftmac100_get_drvinfo(struct net_device *netdev, 821 struct ethtool_drvinfo *info) 822{ |
823 strcpy(info->driver, DRV_NAME); 824 strcpy(info->version, DRV_VERSION); 825 strcpy(info->bus_info, dev_name(&netdev->dev)); | 823 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 824 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 825 strlcpy(info->bus_info, dev_name(&netdev->dev), sizeof(info->bus_info)); |
826} 827 828static int ftmac100_get_settings(struct net_device *netdev, struct ethtool_cmd *cmd) 829{ 830 struct ftmac100 *priv = netdev_priv(netdev); 831 return mii_ethtool_gset(&priv->mii, cmd); 832} 833 --- 372 unchanged lines hidden --- | 826} 827 828static int ftmac100_get_settings(struct net_device *netdev, struct ethtool_cmd *cmd) 829{ 830 struct ftmac100 *priv = netdev_priv(netdev); 831 return mii_ethtool_gset(&priv->mii, cmd); 832} 833 --- 372 unchanged lines hidden --- |