staging: pi433: fix CamelCase for lnaGain enum
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Wed, 14 Mar 2018 20:44:06 +0000 (21:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 18:46:51 +0000 (19:46 +0100)
Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <lnaGain>

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.h
drivers/staging/pi433/rf69.c
drivers/staging/pi433/rf69.h
drivers/staging/pi433/rf69_enum.h

index 79bccc5..3bb3864 100644 (file)
@@ -196,7 +196,7 @@ rf params:
                sets the electrical adoption of the antenna
                fifty_ohm       - for antennas with an impedance of 50Ohm
                two_hundred_ohm - for antennas with an impedance of 200Ohm
-       lnaGain
+       lna_gain
                sets the gain of the low noise amp
                automatic       - lna gain is determined by an agc
                max             - lna gain is set to maximum
index be4a960..b6e214c 100644 (file)
@@ -117,7 +117,7 @@ struct pi433_rx_cfg {
        __u8                    rssi_threshold;
        enum threshold_decrement threshold_decrement;
        enum antenna_impedance  antenna_impedance;
-       enum lnaGain            lna_gain;
+       enum lna_gain           lna_gain;
        enum mantisse           bw_mantisse;    /* normal: 0x50 */
        __u8                    bw_exponent;    /* during AFC: 0x8b */
        enum dagc               dagc;
index e339409..0bc459e 100644 (file)
@@ -399,9 +399,9 @@ int rf69_set_antenna_impedance(struct spi_device *spi, enum antenna_impedance an
        }
 }
 
-int rf69_set_lna_gain(struct spi_device *spi, enum lnaGain lnaGain)
+int rf69_set_lna_gain(struct spi_device *spi, enum lna_gain lna_gain)
 {
-       switch (lnaGain) {
+       switch (lna_gain) {
        case automatic:
                return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_AUTO);
        case max:
index 4d6fc07..b9f6850 100644 (file)
@@ -37,7 +37,7 @@ int rf69_disable_amplifier(struct spi_device *spi, u8 amplifier_mask);
 int rf69_set_output_power_level(struct spi_device *spi, u8 power_level);
 int rf69_set_pa_ramp(struct spi_device *spi, enum pa_ramp pa_ramp);
 int rf69_set_antenna_impedance(struct spi_device *spi, enum antenna_impedance antenna_impedance);
-int rf69_set_lna_gain(struct spi_device *spi, enum lnaGain lnaGain);
+int rf69_set_lna_gain(struct spi_device *spi, enum lna_gain lna_gain);
 int rf69_set_bandwidth(struct spi_device *spi, enum mantisse mantisse, u8 exponent);
 int rf69_set_bandwidth_during_afc(struct spi_device *spi, enum mantisse mantisse, u8 exponent);
 int rf69_set_ook_threshold_dec(struct spi_device *spi, enum threshold_decrement threshold_decrement);
index 5ac3d33..eabaea9 100644 (file)
@@ -65,7 +65,7 @@ enum antenna_impedance {
        two_hundred_ohm
 };
 
-enum lnaGain {
+enum lna_gain {
        automatic,
        max,
        max_minus_6,