]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: pi433: fix CamelCase for thresholdDecrement
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 20 Feb 2018 14:03:30 +0000 (15:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 13:53:05 +0000 (14:53 +0100)
Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <thresholdDecrement>

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 61ba9700d7dc77a4143e7805b1eed9d534f54581..3313dff3c37e753a7c49edf4d705d1c472536dcf 100644 (file)
@@ -180,7 +180,7 @@ rf params:
                threshold value for the signal strength on the receiver input.
                If this value is exceeded, a reception cycle starts
                Allowed values: 0...255
-       thresholdDecrement
+       threshold_decrement
                in order to adapt to different levels of singnal strength, over
                time the receiver gets more and more sensitive. This value
                determs, how fast the sensitivity increases.
index 69847f978a69d13a351122e2f73983dd4a9c638e..22c1631d0bf0efefcd4319da6c498074f3fdb82e 100644 (file)
@@ -115,7 +115,7 @@ struct pi433_rx_cfg {
        enum modulation         modulation;
 
        __u8                    rssi_threshold;
-       enum thresholdDecrement threshold_decrement;
+       enum threshold_decrement threshold_decrement;
        enum antenna_impedance  antenna_impedance;
        enum lnaGain            lna_gain;
        enum mantisse           bw_mantisse;    /* normal: 0x50 */
index 722d95a3777f4b759383d5d90de729e46085d955..91c834059710fe7b5bef8ff073cb88d72c69e88a 100644 (file)
@@ -476,9 +476,9 @@ int rf69_set_bandwidth_during_afc(struct spi_device *spi, enum mantisse mantisse
        return rf69_set_bandwidth_intern(spi, REG_AFCBW, mantisse, exponent);
 }
 
-int rf69_set_ook_threshold_dec(struct spi_device *spi, enum thresholdDecrement thresholdDecrement)
+int rf69_set_ook_threshold_dec(struct spi_device *spi, enum threshold_decrement threshold_decrement)
 {
-       switch (thresholdDecrement) {
+       switch (threshold_decrement) {
        case dec_every8th:
                return rf69_read_mod_write(spi, REG_OOKPEAK, MASK_OOKPEAK_THRESDEC, OOKPEAK_THRESHDEC_EVERY_8TH);
        case dec_every4th:
index 147d8939074577ef9cf32a6914c0c5f7884582a5..21d7034e2c799e92dd1c0708717221aa8b8b2284 100644 (file)
@@ -40,7 +40,7 @@ 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_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 thresholdDecrement thresholdDecrement);
+int rf69_set_ook_threshold_dec(struct spi_device *spi, enum threshold_decrement threshold_decrement);
 int rf69_set_dio_mapping(struct spi_device *spi, u8 DIONumber, u8 value);
 bool rf69_get_flag(struct spi_device *spi, enum flag flag);
 int rf69_set_rssi_threshold(struct spi_device *spi, u8 threshold);
index 196c95dfe3274dfe55d71de1bf54583da9186888..478e3a4c494810fd73d31e672c326e27a95144b9 100644 (file)
@@ -82,7 +82,7 @@ enum mantisse {
        mantisse24
 };
 
-enum thresholdDecrement {
+enum threshold_decrement {
        dec_every8th,
        dec_every4th,
        dec_every2nd,