staging: wilc1000: Use kernel preferred commenting style
PATCH 6/7 staging: wilc1000: Use kernel preferred commenting style
Trims line size at 80 characters by moving parts of some comments in new lines.
Problem found with checkpatch.pl
Signed-off-by Tamara Diaconita <[email protected]>
--- drivers/staging/wilc1000/wilc_spi.c | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-)
drivers/staging/wilc1000/wilc_spi.c +19 -9
@@ -464,7 +464,9 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz,**/ retry =100 ; do { - /* ensure there is room in buffer later to read data and crc */ + /* ensure there is room in buffer later to + * read data and crc + */ if (rix < len2) { rsp = rb[rix++]; } else {
@@ -549,7 +551,9 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz, sz -= nbytes; } -/* if any data in left unread, then read the rest using normal DMA code.*/ +/* if any data in left unread, then read the rest +* using normal DMA code. +*/ while (sz >0 ) {int nbytes;
@@ -559,9 +563,10 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz, nbytes =DATA_PKT_SZ ;/** -* read data response only on the next DMA cycles not -* the first DMA since data response header is already -* handled above for the first DMA. +* read data response only on the next DMA +* cycles not the first DMA since data response +* header is already handled above for the +* first DMA. **/ /** * Data Respnose header
@@ -855,8 +860,9 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)**/ g_spi.crc_off =0 ; -/* TODO: We can remove the CRC trials if there is a definite way to reset */ -/* the SPI to it's initial value. */ +/* TODO: We can remove the CRC trials if there is a definite +* way to reset the SPI to it's initial value. +*/ if (!spi_internal_read (wilc,WILC_SPI_PROTOCOL_OFFSET , ®)) {/* Read failed. Try with CRC off. This might happen when module * is removed but chip isn't reset
@@ -864,7 +870,9 @@ static int wilc_spi_init(struct wilc *wilc, bool resume) g_spi.crc_off =1 ;dev_err (&spi->dev,"Failed internal read protocol with CRC on, retrying with CRC off...\n" );if (!spi_internal_read (wilc,WILC_SPI_PROTOCOL_OFFSET , ®)) { -/* Reaad failed with both CRC on and off, something went bad */ +/* Reaad failed with both CRC on and off, +* something went bad +*/ dev_err (&spi->dev,"Failed internal read protocol...\n" );return 0 ;
@@ -995,7 +1003,9 @@ static int wilc_spi_clear_int_ext(struct wilc *wilc, u32 val) ret =1 ;for (i =0 ; i < g_spi.nint; i++) { -/* No matter what you write 1 or 0, it will clear interrupt. */ +/* No matter what you write 1 or 0, +* it will clear interrupt. +*/ if (flags &1 ) ret =wilc_spi_write_reg (wilc,0x10c8 + i *4 ,1 );if (!ret)
Signature · 1 line
2.9.3