staging: wilc1000: wilc_spi: Correct variable name
PATCH 2/3 staging: wilc1000: wilc_spi: Correct variable name
Correct 'unkmown_mask' variable name to 'unknown_mask'.
Fix the checkpath.pl issue:
CHECK: unkmown may be misspelled, perhaps 'unknown'?.
Signed-off-by Tamara Diaconita <[email protected]>
--- drivers/staging/wilc1000/wilc_spi.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
drivers/staging/wilc1000/wilc_spi.c +11 -5
@@ -969,16 +969,22 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)if (g_spi.nint >5 ) {wilc_spi_read_reg (wilc,0x1a94 , &irq_flags); - tmp |= (((irq_flags >>0 ) &0x7 ) << (IRG_FLAGS_OFFSET +5 )); + tmp |= (((irq_flags >>0 ) &0x7 ) << + (IRG_FLAGS_OFFSET +5 )); } { -u32 unkmown_mask; +u32 unknown_mask; - 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); +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); happended =1 ; } }
Signature · 1 line
2.9.3
Quoted 4 lines · Tamara Diaconita
Correct '
unkmown_mask' variable name to 'unknown_mask'.Fix the checkpath.pl issue:
CHECK: unkmown may be misspelled, perhaps 'unknown'?.
Hi Tamara,
I can't get this one to compile. Please check.
When you redo it, you can correct "happended" also:
staging/wilc1000$ codespell wilc*.c
wilc_spi.c:964: happended ==> happened wilc_spi.c:970: happended ==> happened wilc_spi.c:994: happended ==> happened wilc_spi.c:998: happended ==> happened
Subject can be: Correct spelling of variable names.
Thanks,
alisons
Quoted 47 lines
Signed-off-by Tamara Diaconita <[email protected]>--- drivers/staging/wilc1000/wilc_spi.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)drivers/staging/wilc1000/wilc_spi.c +11
-5@@ -969,16 +969,22 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)if (g_spi.nint >5 ) {wilc_spi_read_reg (wilc,0x1a94 , &irq_flags); - tmp |= (((irq_flags >>0 ) &0x7 ) << (IRG_FLAGS_OFFSET +5 )); + tmp |= (((irq_flags >>0 ) &0x7 ) << + (IRG_FLAGS_OFFSET +5 )); } { -u32 unkmown_mask; +u32 unknown_mask; - 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); +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); happended =1 ; } }Signature · 8 lines
2.9.3 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170308170637.3947-1-diaconita.tamara%40gmail.com. For more options, visit https://groups.google.com/d/optout.