diff options
Diffstat (limited to 'drivers/net/ethernet/atheros')
| -rw-r--r-- | drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c | 1 | ||||
| -rw-r--r-- | drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 13 | ||||
| -rw-r--r-- | drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c | 10 | ||||
| -rw-r--r-- | drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 13 | ||||
| -rw-r--r-- | drivers/net/ethernet/atheros/atlx/atl1.c | 1 | ||||
| -rw-r--r-- | drivers/net/ethernet/atheros/atlx/atl2.c | 23 | ||||
| -rw-r--r-- | drivers/net/ethernet/atheros/atlx/atlx.c | 13 | 
7 files changed, 44 insertions, 30 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c b/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c index 7be884d0aaf..0a9326aa58b 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c @@ -232,7 +232,6 @@ static void atl1c_get_drvinfo(struct net_device *netdev,  	strlcpy(drvinfo->driver,  atl1c_driver_name, sizeof(drvinfo->driver));  	strlcpy(drvinfo->version, atl1c_driver_version,  		sizeof(drvinfo->version)); -	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));  	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),  		sizeof(drvinfo->bus_info));  	drvinfo->n_stats = 0; diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 02c7ed8d9ec..b8591246eb4 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -411,7 +411,7 @@ static void atl1c_set_multi(struct net_device *netdev)  	}  } -static void __atl1c_vlan_mode(u32 features, u32 *mac_ctrl_data) +static void __atl1c_vlan_mode(netdev_features_t features, u32 *mac_ctrl_data)  {  	if (features & NETIF_F_HW_VLAN_RX) {  		/* enable VLAN tag insert/strip */ @@ -422,7 +422,8 @@ static void __atl1c_vlan_mode(u32 features, u32 *mac_ctrl_data)  	}  } -static void atl1c_vlan_mode(struct net_device *netdev, u32 features) +static void atl1c_vlan_mode(struct net_device *netdev, +	netdev_features_t features)  {  	struct atl1c_adapter *adapter = netdev_priv(netdev);  	struct pci_dev *pdev = adapter->pdev; @@ -482,7 +483,8 @@ static void atl1c_set_rxbufsize(struct atl1c_adapter *adapter,  		roundup(mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN, 8) : AT_RX_BUF_SIZE;  } -static u32 atl1c_fix_features(struct net_device *netdev, u32 features) +static netdev_features_t atl1c_fix_features(struct net_device *netdev, +	netdev_features_t features)  {  	/*  	 * Since there is no support for separate rx/tx vlan accel @@ -499,9 +501,10 @@ static u32 atl1c_fix_features(struct net_device *netdev, u32 features)  	return features;  } -static int atl1c_set_features(struct net_device *netdev, u32 features) +static int atl1c_set_features(struct net_device *netdev, +	netdev_features_t features)  { -	u32 changed = netdev->features ^ features; +	netdev_features_t changed = netdev->features ^ features;  	if (changed & NETIF_F_HW_VLAN_RX)  		atl1c_vlan_mode(netdev, features); diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c b/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c index 6269438d365..6e61f9f9ebb 100644 --- a/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c +++ b/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c @@ -310,10 +310,12 @@ static void atl1e_get_drvinfo(struct net_device *netdev,  {  	struct atl1e_adapter *adapter = netdev_priv(netdev); -	strncpy(drvinfo->driver,  atl1e_driver_name, 32); -	strncpy(drvinfo->version, atl1e_driver_version, 32); -	strncpy(drvinfo->fw_version, "L1e", 32); -	strncpy(drvinfo->bus_info, pci_name(adapter->pdev), 32); +	strlcpy(drvinfo->driver,  atl1e_driver_name, sizeof(drvinfo->driver)); +	strlcpy(drvinfo->version, atl1e_driver_version, +		sizeof(drvinfo->version)); +	strlcpy(drvinfo->fw_version, "L1e", sizeof(drvinfo->fw_version)); +	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), +		sizeof(drvinfo->bus_info));  	drvinfo->n_stats = 0;  	drvinfo->testinfo_len = 0;  	drvinfo->regdump_len = atl1e_get_regs_len(netdev); diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c index 95483bcac1d..c915c087381 100644 --- a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c +++ b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c @@ -313,7 +313,7 @@ static void atl1e_set_multi(struct net_device *netdev)  	}  } -static void __atl1e_vlan_mode(u32 features, u32 *mac_ctrl_data) +static void __atl1e_vlan_mode(netdev_features_t features, u32 *mac_ctrl_data)  {  	if (features & NETIF_F_HW_VLAN_RX) {  		/* enable VLAN tag insert/strip */ @@ -324,7 +324,8 @@ static void __atl1e_vlan_mode(u32 features, u32 *mac_ctrl_data)  	}  } -static void atl1e_vlan_mode(struct net_device *netdev, u32 features) +static void atl1e_vlan_mode(struct net_device *netdev, +	netdev_features_t features)  {  	struct atl1e_adapter *adapter = netdev_priv(netdev);  	u32 mac_ctrl_data = 0; @@ -370,7 +371,8 @@ static int atl1e_set_mac_addr(struct net_device *netdev, void *p)  	return 0;  } -static u32 atl1e_fix_features(struct net_device *netdev, u32 features) +static netdev_features_t atl1e_fix_features(struct net_device *netdev, +	netdev_features_t features)  {  	/*  	 * Since there is no support for separate rx/tx vlan accel @@ -384,9 +386,10 @@ static u32 atl1e_fix_features(struct net_device *netdev, u32 features)  	return features;  } -static int atl1e_set_features(struct net_device *netdev, u32 features) +static int atl1e_set_features(struct net_device *netdev, +	netdev_features_t features)  { -	u32 changed = netdev->features ^ features; +	netdev_features_t changed = netdev->features ^ features;  	if (changed & NETIF_F_HW_VLAN_RX)  		atl1e_vlan_mode(netdev, features); diff --git a/drivers/net/ethernet/atheros/atlx/atl1.c b/drivers/net/ethernet/atheros/atlx/atl1.c index 33a4e35f5ee..9bd20497664 100644 --- a/drivers/net/ethernet/atheros/atlx/atl1.c +++ b/drivers/net/ethernet/atheros/atlx/atl1.c @@ -3365,7 +3365,6 @@ static void atl1_get_drvinfo(struct net_device *netdev,  	strlcpy(drvinfo->driver, ATLX_DRIVER_NAME, sizeof(drvinfo->driver));  	strlcpy(drvinfo->version, ATLX_DRIVER_VERSION,  		sizeof(drvinfo->version)); -	strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));  	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),  		sizeof(drvinfo->bus_info));  	drvinfo->eedump_len = ATL1_EEDUMP_LEN; diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c index 1feae5928a4..071f4c85896 100644 --- a/drivers/net/ethernet/atheros/atlx/atl2.c +++ b/drivers/net/ethernet/atheros/atlx/atl2.c @@ -361,7 +361,7 @@ static inline void atl2_irq_disable(struct atl2_adapter *adapter)      synchronize_irq(adapter->pdev->irq);  } -static void __atl2_vlan_mode(u32 features, u32 *ctrl) +static void __atl2_vlan_mode(netdev_features_t features, u32 *ctrl)  {  	if (features & NETIF_F_HW_VLAN_RX) {  		/* enable VLAN tag insert/strip */ @@ -372,7 +372,8 @@ static void __atl2_vlan_mode(u32 features, u32 *ctrl)  	}  } -static void atl2_vlan_mode(struct net_device *netdev, u32 features) +static void atl2_vlan_mode(struct net_device *netdev, +	netdev_features_t features)  {  	struct atl2_adapter *adapter = netdev_priv(netdev);  	u32 ctrl; @@ -391,7 +392,8 @@ static void atl2_restore_vlan(struct atl2_adapter *adapter)  	atl2_vlan_mode(adapter->netdev, adapter->netdev->features);  } -static u32 atl2_fix_features(struct net_device *netdev, u32 features) +static netdev_features_t atl2_fix_features(struct net_device *netdev, +	netdev_features_t features)  {  	/*  	 * Since there is no support for separate rx/tx vlan accel @@ -405,9 +407,10 @@ static u32 atl2_fix_features(struct net_device *netdev, u32 features)  	return features;  } -static int atl2_set_features(struct net_device *netdev, u32 features) +static int atl2_set_features(struct net_device *netdev, +	netdev_features_t features)  { -	u32 changed = netdev->features ^ features; +	netdev_features_t changed = netdev->features ^ features;  	if (changed & NETIF_F_HW_VLAN_RX)  		atl2_vlan_mode(netdev, features); @@ -2049,10 +2052,12 @@ static void atl2_get_drvinfo(struct net_device *netdev,  {  	struct atl2_adapter *adapter = netdev_priv(netdev); -	strncpy(drvinfo->driver,  atl2_driver_name, 32); -	strncpy(drvinfo->version, atl2_driver_version, 32); -	strncpy(drvinfo->fw_version, "L2", 32); -	strncpy(drvinfo->bus_info, pci_name(adapter->pdev), 32); +	strlcpy(drvinfo->driver,  atl2_driver_name, sizeof(drvinfo->driver)); +	strlcpy(drvinfo->version, atl2_driver_version, +		sizeof(drvinfo->version)); +	strlcpy(drvinfo->fw_version, "L2", sizeof(drvinfo->fw_version)); +	strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), +		sizeof(drvinfo->bus_info));  	drvinfo->n_stats = 0;  	drvinfo->testinfo_len = 0;  	drvinfo->regdump_len = atl2_get_regs_len(netdev); diff --git a/drivers/net/ethernet/atheros/atlx/atlx.c b/drivers/net/ethernet/atheros/atlx/atlx.c index aabcf4b5745..8ff7411094d 100644 --- a/drivers/net/ethernet/atheros/atlx/atlx.c +++ b/drivers/net/ethernet/atheros/atlx/atlx.c @@ -211,7 +211,7 @@ static void atlx_link_chg_task(struct work_struct *work)  	spin_unlock_irqrestore(&adapter->lock, flags);  } -static void __atlx_vlan_mode(u32 features, u32 *ctrl) +static void __atlx_vlan_mode(netdev_features_t features, u32 *ctrl)  {  	if (features & NETIF_F_HW_VLAN_RX) {  		/* enable VLAN tag insert/strip */ @@ -222,7 +222,8 @@ static void __atlx_vlan_mode(u32 features, u32 *ctrl)  	}  } -static void atlx_vlan_mode(struct net_device *netdev, u32 features) +static void atlx_vlan_mode(struct net_device *netdev, +	netdev_features_t features)  {  	struct atlx_adapter *adapter = netdev_priv(netdev);  	unsigned long flags; @@ -242,7 +243,8 @@ static void atlx_restore_vlan(struct atlx_adapter *adapter)  	atlx_vlan_mode(adapter->netdev, adapter->netdev->features);  } -static u32 atlx_fix_features(struct net_device *netdev, u32 features) +static netdev_features_t atlx_fix_features(struct net_device *netdev, +	netdev_features_t features)  {  	/*  	 * Since there is no support for separate rx/tx vlan accel @@ -256,9 +258,10 @@ static u32 atlx_fix_features(struct net_device *netdev, u32 features)  	return features;  } -static int atlx_set_features(struct net_device *netdev, u32 features) +static int atlx_set_features(struct net_device *netdev, +	netdev_features_t features)  { -	u32 changed = netdev->features ^ features; +	netdev_features_t changed = netdev->features ^ features;  	if (changed & NETIF_F_HW_VLAN_RX)  		atlx_vlan_mode(netdev, features);  |