staging: wilc1000: Correct name of variables
PATCH 3/7 staging: wilc1000: Correct name of variables
Correct misspelled variables: unkmown_mask and happended to improve code readability.
Problem found with checkpatch.pl.
Signed-off-by Tamara Diaconita <[email protected]>
--- drivers/staging/wilc1000/wilc_spi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/wilc1000/wilc_spi.c +8 -8
@@ -929,9 +929,9 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) {struct spi_device *spi =to_spi_device (wilc->dev);int ret; -int happended, j; +int happened, j;u32 irq_flags; -u32 unkmown_mask; +u32 unknown_mask;if (g_spi.has_thrpt_enh) { ret = spi_internal_read(wilc, 0xe840 - WILC_SPI_REG_BASE,
@@ -951,7 +951,7 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) j =0 ; do { - happended = 0; + happened = 0; wilc_spi_read_reg(wilc, 0x1a90, &irq_flags); tmp |= ((irq_flags >> 27) << IRG_FLAGS_OFFSET);
@@ -962,14 +962,14 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) tmp |= (((irq_flags >>0 ) &0x7 ) << (IRG_FLAGS_OFFSET +5 )); } - unkmown_mask = ~((1ul << g_spi.nint) -1 ); + unknown_mask = ~((1ul << g_spi.nint) -1 ); -if ((tmp >>IRG_FLAGS_OFFSET ) & unkmown_mask) { -dev_err (&spi->dev,"Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n" , j, tmp, unkmown_mask); - happended =1 ; +if ((tmp >>IRG_FLAGS_OFFSET ) & unknown_mask) { +dev_err (&spi->dev,"Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n" , j, tmp, unknown_mask); + happened =1 ; } j++; - }while (happended); + }while (happened); *int_status = tmp; }
Signature · 1 line
2.9.3