1
0
Fork 0

ethernet: amd: fix 'foo* bar'

This patch fix the 'foo*' bar with 'foo *bar' and (foo*) with (foo *).

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
Varka Bhadram 2014-07-14 14:09:09 +05:30 committed by David S. Miller
parent ba69a3d78e
commit 46c73ecc61
1 changed files with 40 additions and 36 deletions

View File

@ -109,7 +109,8 @@ module_param_array(dynamic_ipg, bool, NULL, 0);
MODULE_PARM_DESC(dynamic_ipg, "Enable or Disable dynamic IPG, 1: Enable, 0: Disable");
/* This function will read the PHY registers. */
static int amd8111e_read_phy(struct amd8111e_priv* lp, int phy_id, int reg, u32* val)
static int amd8111e_read_phy(struct amd8111e_priv *lp,
int phy_id, int reg, u32 *val)
{
void __iomem *mmio = lp->mmio;
unsigned int reg_val;
@ -137,7 +138,8 @@ err_phy_read:
}
/* This function will write into PHY registers. */
static int amd8111e_write_phy(struct amd8111e_priv* lp,int phy_id, int reg, u32 val)
static int amd8111e_write_phy(struct amd8111e_priv *lp,
int phy_id, int reg, u32 val)
{
unsigned int repeat = REPEAT_CNT;
void __iomem *mmio = lp->mmio;
@ -177,7 +179,8 @@ static int amd8111e_mdio_read(struct net_device * dev, int phy_id, int reg_num)
}
/* This is the mii register write function provided to the mii interface. */
static void amd8111e_mdio_write(struct net_device * dev, int phy_id, int reg_num, int val)
static void amd8111e_mdio_write(struct net_device *dev,
int phy_id, int reg_num, int val)
{
struct amd8111e_priv *lp = netdev_priv(dev);
@ -1394,7 +1397,8 @@ static void amd8111e_set_multicast_list(struct net_device *dev)
}
static void amd8111e_get_drvinfo(struct net_device* dev, struct ethtool_drvinfo *info)
static void amd8111e_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info)
{
struct amd8111e_priv *lp = netdev_priv(dev);
struct pci_dev *pci_dev = lp->pci_dev;