Commit b687a779 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: xilinx_can: fix checkpatch warnings

This patch fixes several checkpatch warnings.
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 2b1a4547
...@@ -194,7 +194,7 @@ struct xcan_devtype_data { ...@@ -194,7 +194,7 @@ struct xcan_devtype_data {
*/ */
struct xcan_priv { struct xcan_priv {
struct can_priv can; struct can_priv can;
spinlock_t tx_lock; spinlock_t tx_lock; /* Lock for synchronizing TX interrupt handling */
unsigned int tx_head; unsigned int tx_head;
unsigned int tx_tail; unsigned int tx_tail;
unsigned int tx_max; unsigned int tx_max;
...@@ -482,11 +482,10 @@ static int xcan_chip_start(struct net_device *ndev) ...@@ -482,11 +482,10 @@ static int xcan_chip_start(struct net_device *ndev)
priv->write_reg(priv, XCAN_IER_OFFSET, ier); priv->write_reg(priv, XCAN_IER_OFFSET, ier);
/* Check whether it is loopback mode or normal mode */ /* Check whether it is loopback mode or normal mode */
if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) { if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)
reg_msr = XCAN_MSR_LBACK_MASK; reg_msr = XCAN_MSR_LBACK_MASK;
} else { else
reg_msr = 0x0; reg_msr = 0x0;
}
/* enable the first extended filter, if any, as cores with extended /* enable the first extended filter, if any, as cores with extended
* filtering default to non-receipt if all filters are disabled * filtering default to non-receipt if all filters are disabled
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment