OSDN Git Service

staging: pi433: fix CamelCase for Ohm identifiers
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Sat, 27 Jan 2018 09:42:13 +0000 (10:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 14:35:04 +0000 (15:35 +0100)
Fixes checkpatch warnings:

  CHECK: Avoid CamelCase: <fiftyOhm>
  CHECK: Avoid CamelCase: <twohundretOhm>

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

index 05f2781..61ba970 100644 (file)
@@ -194,8 +194,8 @@ rf params:
                step_6_0db      - increase in 6 db steps
        antenna_impedance
                sets the electrical adoption of the antenna
-               fiftyOhm        - for antennas with an impedance of 50Ohm
-               twohundretOhm   - for antennas with an impedance of 200Ohm
+               fifty_ohm       - for antennas with an impedance of 50Ohm
+               two_hundred_ohm - for antennas with an impedance of 200Ohm
        lnaGain
                sets the gain of the low noise amp
                automatic       - lna gain is determined by an agc
index edcd7e7..14712e1 100644 (file)
@@ -1183,7 +1183,7 @@ static int pi433_probe(struct spi_device *spi)
        retval = rf69_set_output_power_level(spi, 13);
        if (retval < 0)
                goto minor_failed;
-       retval = rf69_set_antenna_impedance(spi, fiftyOhm);
+       retval = rf69_set_antenna_impedance(spi, fifty_ohm);
        if (retval < 0)
                goto minor_failed;
 
index 34ea865..c69e63f 100644 (file)
@@ -389,9 +389,9 @@ int rf69_set_pa_ramp(struct spi_device *spi, enum paRamp paRamp)
 int rf69_set_antenna_impedance(struct spi_device *spi, enum antenna_impedance antenna_impedance)
 {
        switch (antenna_impedance) {
-       case fiftyOhm:
+       case fifty_ohm:
                return rf69_clear_bit(spi, REG_LNA, MASK_LNA_ZIN);
-       case twohundretOhm:
+       case two_hundred_ohm:
                return rf69_set_bit(spi, REG_LNA, MASK_LNA_ZIN);
        default:
                dev_dbg(&spi->dev, "set: illegal input param");
index 7d0da84..5629af7 100644 (file)
@@ -61,8 +61,8 @@ enum paRamp {
 };
 
 enum antenna_impedance {
-       fiftyOhm,
-       twohundretOhm
+       fifty_ohm,
+       two_hundred_ohm
 };
 
 enum lnaGain {