Skip to content

Commit

Permalink
staging: pi433: fix CamelCase for lnaGain enum
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Valentin Vidic authored and Greg Kroah-Hartman committed Mar 19, 2018
1 parent 9d985d1 commit e4928ac
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/pi433/Documentation/pi433.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/pi433/pi433_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/pi433/rf69.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/pi433/rf69.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/pi433/rf69_enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ enum antenna_impedance {
two_hundred_ohm
};

enum lnaGain {
enum lna_gain {
automatic,
max,
max_minus_6,
Expand Down

0 comments on commit e4928ac

Please sign in to comment.