diff options
author | Tomoya <tomoya-linux@dsn.okisemi.com> | 2010-12-12 15:24:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-13 15:24:25 -0500 |
commit | c755145649fa73bd197ac1a73d141047c61b543a (patch) | |
tree | 59ff87bcd47aa3b828969a4df1efbc8ad760909b /drivers/net/can | |
parent | d06848be64e13d5d1d73e581fb185e815893d8b7 (diff) |
pch_can: Comment optimization
Comment optimization
Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/pch_can.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c index c500b6d65084..a1fd3be69a81 100644 --- a/drivers/net/can/pch_can.c +++ b/drivers/net/can/pch_can.c | |||
@@ -292,7 +292,7 @@ static void pch_can_set_rxtx(struct pch_can_priv *priv, u32 buff_num, | |||
292 | else | 292 | else |
293 | ie = PCH_IF_MCONT_RXIE; | 293 | ie = PCH_IF_MCONT_RXIE; |
294 | 294 | ||
295 | /* Reading the receive buffer data from RAM to Interface1/2 registers */ | 295 | /* Reading the Msg buffer from Message RAM to IF1/2 registers. */ |
296 | iowrite32(PCH_CMASK_RX_TX_GET, &priv->regs->ifregs[dir].cmask); | 296 | iowrite32(PCH_CMASK_RX_TX_GET, &priv->regs->ifregs[dir].cmask); |
297 | pch_can_rw_msg_obj(&priv->regs->ifregs[dir].creq, buff_num); | 297 | pch_can_rw_msg_obj(&priv->regs->ifregs[dir].creq, buff_num); |
298 | 298 | ||
@@ -854,7 +854,7 @@ static int pch_can_open(struct net_device *ndev) | |||
854 | priv->use_msi = 1; | 854 | priv->use_msi = 1; |
855 | } | 855 | } |
856 | 856 | ||
857 | /* Regsitering the interrupt. */ | 857 | /* Regstering the interrupt. */ |
858 | retval = request_irq(priv->dev->irq, pch_can_interrupt, IRQF_SHARED, | 858 | retval = request_irq(priv->dev->irq, pch_can_interrupt, IRQF_SHARED, |
859 | ndev->name, ndev); | 859 | ndev->name, ndev); |
860 | if (retval) { | 860 | if (retval) { |
@@ -954,7 +954,7 @@ static netdev_tx_t pch_xmit(struct sk_buff *skb, struct net_device *ndev) | |||
954 | 954 | ||
955 | can_put_echo_skb(skb, ndev, tx_obj_no - PCH_RX_OBJ_END - 1); | 955 | can_put_echo_skb(skb, ndev, tx_obj_no - PCH_RX_OBJ_END - 1); |
956 | 956 | ||
957 | /* Updating the size of the data. */ | 957 | /* Set the size of the data. Update if2_mcont */ |
958 | iowrite32(cf->can_dlc | PCH_IF_MCONT_NEWDAT | PCH_IF_MCONT_TXRQXT | | 958 | iowrite32(cf->can_dlc | PCH_IF_MCONT_NEWDAT | PCH_IF_MCONT_TXRQXT | |
959 | PCH_IF_MCONT_TXIE, &priv->regs->ifregs[1].mcont); | 959 | PCH_IF_MCONT_TXIE, &priv->regs->ifregs[1].mcont); |
960 | 960 | ||
@@ -1061,8 +1061,8 @@ static int pch_can_get_buffer_status(struct pch_can_priv *priv) | |||
1061 | 1061 | ||
1062 | static int pch_can_suspend(struct pci_dev *pdev, pm_message_t state) | 1062 | static int pch_can_suspend(struct pci_dev *pdev, pm_message_t state) |
1063 | { | 1063 | { |
1064 | int i; /* Counter variable. */ | 1064 | int i; |
1065 | int retval; /* Return value. */ | 1065 | int retval; |
1066 | u32 buf_stat; /* Variable for reading the transmit buffer status. */ | 1066 | u32 buf_stat; /* Variable for reading the transmit buffer status. */ |
1067 | int counter = PCH_COUNTER_LIMIT; | 1067 | int counter = PCH_COUNTER_LIMIT; |
1068 | 1068 | ||
@@ -1119,8 +1119,8 @@ static int pch_can_suspend(struct pci_dev *pdev, pm_message_t state) | |||
1119 | 1119 | ||
1120 | static int pch_can_resume(struct pci_dev *pdev) | 1120 | static int pch_can_resume(struct pci_dev *pdev) |
1121 | { | 1121 | { |
1122 | int i; /* Counter variable. */ | 1122 | int i; |
1123 | int retval; /* Return variable. */ | 1123 | int retval; |
1124 | struct net_device *dev = pci_get_drvdata(pdev); | 1124 | struct net_device *dev = pci_get_drvdata(pdev); |
1125 | struct pch_can_priv *priv = netdev_priv(dev); | 1125 | struct pch_can_priv *priv = netdev_priv(dev); |
1126 | 1126 | ||