]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: pi433: fix CamelCase for currentValue
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Sat, 27 Jan 2018 09:42:14 +0000 (10:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 14:35:04 +0000 (15:35 +0100)
Local variable storing the value for modulation register so replace
with modulation_reg.

Fixes checkpatch warnings:

  CHECK: Avoid CamelCase: <currentValue>

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/rf69.c

index c69e63ffe5375562769a1d7be786d4cd2bd1dcdb..261ba1643f5a936d7a68f4915c9be8114c27a426 100644 (file)
@@ -151,11 +151,11 @@ int rf69_set_modulation(struct spi_device *spi, enum modulation modulation)
 
 static enum modulation rf69_get_modulation(struct spi_device *spi)
 {
-       u8 currentValue;
+       u8 modulation_reg;
 
-       currentValue = rf69_read_reg(spi, REG_DATAMODUL);
+       modulation_reg = rf69_read_reg(spi, REG_DATAMODUL);
 
-       switch (currentValue & MASK_DATAMODUL_MODULATION_TYPE) {
+       switch (modulation_reg & MASK_DATAMODUL_MODULATION_TYPE) {
        case DATAMODUL_MODULATION_TYPE_OOK:
                return OOK;
        case DATAMODUL_MODULATION_TYPE_FSK: