ax88796.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) | ax88796.c (7826d43f2db45c9305a6e0ba165650e1a203f517) |
---|---|
1/* drivers/net/ethernet/8390/ax88796.c 2 * 3 * Copyright 2005,2007 Simtec Electronics 4 * Ben Dooks <ben@simtec.co.uk> 5 * 6 * Asix AX88796 10/100 Ethernet controller support 7 * Based on ne.c, by Donald Becker, et-al. 8 * --- 455 unchanged lines hidden (view full) --- 464 465/* ethtool ops */ 466 467static void ax_get_drvinfo(struct net_device *dev, 468 struct ethtool_drvinfo *info) 469{ 470 struct platform_device *pdev = to_platform_device(dev->dev.parent); 471 | 1/* drivers/net/ethernet/8390/ax88796.c 2 * 3 * Copyright 2005,2007 Simtec Electronics 4 * Ben Dooks <ben@simtec.co.uk> 5 * 6 * Asix AX88796 10/100 Ethernet controller support 7 * Based on ne.c, by Donald Becker, et-al. 8 * --- 455 unchanged lines hidden (view full) --- 464 465/* ethtool ops */ 466 467static void ax_get_drvinfo(struct net_device *dev, 468 struct ethtool_drvinfo *info) 469{ 470 struct platform_device *pdev = to_platform_device(dev->dev.parent); 471 |
472 strcpy(info->driver, DRV_NAME); 473 strcpy(info->version, DRV_VERSION); 474 strcpy(info->bus_info, pdev->name); | 472 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 473 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 474 strlcpy(info->bus_info, pdev->name, sizeof(info->bus_info)); |
475} 476 477static int ax_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) 478{ 479 struct ax_device *ax = to_ax_dev(dev); 480 struct phy_device *phy_dev = ax->phy_dev; 481 482 if (!phy_dev) --- 517 unchanged lines hidden --- | 475} 476 477static int ax_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) 478{ 479 struct ax_device *ax = to_ax_dev(dev); 480 struct phy_device *phy_dev = ax->phy_dev; 481 482 if (!phy_dev) --- 517 unchanged lines hidden --- |