staging: pi433: fix CamelCase for paRamp enum
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Mon, 5 Mar 2018 07:02:19 +0000 (08:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:22:17 +0000 (04:22 -0800)
Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <paRamp>

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 2e8835bf2c9a35858ec919c04dfbb6c1ed746700..79bccc5868699e1fa6ae8aa62b4f9ea718e131de 100644 (file)
@@ -92,7 +92,7 @@ rf params:
                shaping0_3      - gauss filter with BT 0.3 (FSK only)
                shapingBR       - filter cut off at BR (OOK only)
                shaping2BR      - filter cut off at 2*BR (OOK only)
-       paRamp (FSK only)
+       pa_ramp (FSK only)
                ramp3400        - amp ramps up in 3.4ms
                ramp2000        - amp ramps up in 2.0ms
                ramp1000        - amp ramps up in 1ms
index b3fa4fe64c5c3524cd03fe42ed5e6e117173936c..be4a96055a977eea1910684777646ec9c9176cb3 100644 (file)
@@ -67,7 +67,7 @@ struct pi433_tx_cfg {
        enum modulation         modulation;
        enum mod_shaping        mod_shaping;
 
-       enum paRamp             pa_ramp;
+       enum pa_ramp            pa_ramp;
 
        enum tx_start_condition tx_start_condition;
 
index c143ffc7596f0ef243c46f660917ebbc9db9673a..e5c7e48a3b867b6bb181a0ae6ce30be2ce193214 100644 (file)
@@ -345,9 +345,9 @@ int rf69_set_output_power_level(struct spi_device *spi, u8 power_level)
        return rf69_read_mod_write(spi, REG_PALEVEL, MASK_PALEVEL_OUTPUT_POWER, power_level);
 }
 
-int rf69_set_pa_ramp(struct spi_device *spi, enum paRamp paRamp)
+int rf69_set_pa_ramp(struct spi_device *spi, enum pa_ramp pa_ramp)
 {
-       switch (paRamp) {
+       switch (pa_ramp) {
        case ramp3400:
                return rf69_write_reg(spi, REG_PARAMP, PARAMP_3400);
        case ramp2000:
index 677091319d7ed096efb85cbe38947ce959fa1dae..d83808a5dd86f083c02810c219875dc480ba9156 100644 (file)
@@ -35,7 +35,7 @@ int rf69_set_frequency(struct spi_device *spi, u32 frequency);
 int rf69_enable_amplifier(struct spi_device *spi, u8 amplifier_mask);
 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 paRamp paRamp);
+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_bandwidth(struct spi_device *spi, enum mantisse mantisse, u8 exponent);
index 43990e74db8583e1f0abfbdb9996148bbe828482..5ac3d33a3d0cb97e5c2c1da466d6cb690f0948e2 100644 (file)
@@ -41,7 +41,7 @@ enum mod_shaping {
        SHAPING_2BR
 };
 
-enum paRamp {
+enum pa_ramp {
        ramp3400,
        ramp2000,
        ramp1000,