aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/spi
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2019-07-24 14:16:29 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-08-20 13:41:26 +0200
commit3b9bcede4d9fc00cdab064529cec62699a83bbed (patch)
tree26d319e593a1c229eb3731a209691ecfa4f8dfe8 /drivers/net/can/spi
parentcan: m_can_platform: m_can_plat_probe(): add missing error handling if mcan_class is NULL (diff)
downloadlinux-dev-3b9bcede4d9fc00cdab064529cec62699a83bbed.tar.xz
linux-dev-3b9bcede4d9fc00cdab064529cec62699a83bbed.zip
can: mcp251x: convert block comments to network style comments
This patch converts all block comments to network subsystem style block comments. Acked-by: Sean Nyekjaer <sean@geanix.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/spi')
-rw-r--r--drivers/net/can/spi/mcp251x.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/net/can/spi/mcp251x.c b/drivers/net/can/spi/mcp251x.c
index 12358f06d194..7dfbb67af653 100644
--- a/drivers/net/can/spi/mcp251x.c
+++ b/drivers/net/can/spi/mcp251x.c
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only
-/*
- * CAN bus driver for Microchip 251x/25625 CAN Controller with SPI Interface
+/* CAN bus driver for Microchip 251x/25625 CAN Controller with SPI Interface
*
* MCP2510 support and bug fixes by Christian Pellegrin
* <chripell@evolware.org>
@@ -191,8 +190,7 @@
#define SET_BYTE(val, byte) \
(((val) & 0xff) << ((byte) * 8))
-/*
- * Buffer size required for the largest SPI transfer (i.e., reading a
+/* Buffer size required for the largest SPI transfer (i.e., reading a
* frame)
*/
#define CAN_FRAME_MAX_DATA_LEN 8
@@ -282,8 +280,7 @@ static void mcp251x_clean(struct net_device *net)
priv->tx_len = 0;
}
-/*
- * Note about handling of error return of mcp251x_spi_trans: accessing
+/* Note about handling of error return of mcp251x_spi_trans: accessing
* registers via SPI is not really different conceptually than using
* normal I/O assembler instructions, although it's much more
* complicated from a practical POV. So it's not advisable to always
@@ -1094,8 +1091,7 @@ static int mcp251x_can_probe(struct spi_device *spi)
if (mcp251x_enable_dma) {
spi->dev.coherent_dma_mask = ~0;
- /*
- * Minimum coherent DMA allocation is PAGE_SIZE, so allocate
+ /* Minimum coherent DMA allocation is PAGE_SIZE, so allocate
* that much and share it between Tx and Rx DMA buffers.
*/
priv->spi_tx_buf = dmam_alloc_coherent(&spi->dev,
@@ -1189,8 +1185,7 @@ static int __maybe_unused mcp251x_can_suspend(struct device *dev)
priv->force_quit = 1;
disable_irq(spi->irq);
- /*
- * Note: at this point neither IST nor workqueues are running.
+ /* Note: at this point neither IST nor workqueues are running.
* open/stop cannot be called anyway so locking is not needed
*/
if (netif_running(net)) {