Commit b167a524 authored by Valentin Vidic's avatar Valentin Vidic Committed by Greg Kroah-Hartman

staging: pi433: fix CamelCase for maxMinus variables

Fixes checkpatch warnings:

  CHECK: Avoid CamelCase: <maxMinus12>
  CHECK: Avoid CamelCase: <maxMinus24>
  CHECK: Avoid CamelCase: <maxMinus36>
  CHECK: Avoid CamelCase: <maxMinus48>
  CHECK: Avoid CamelCase: <maxMinus6>
Signed-off-by: default avatarValentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7ebee24b
...@@ -200,11 +200,11 @@ rf params: ...@@ -200,11 +200,11 @@ rf params:
sets the gain of the low noise amp sets the gain of the low noise amp
automatic - lna gain is determined by an agc automatic - lna gain is determined by an agc
max - lna gain is set to maximum max - lna gain is set to maximum
maxMinus6 - lna gain is set to 6db below max max_minus_6 - lna gain is set to 6db below max
maxMinus12 - lna gain is set to 12db below max max_minus_12 - lna gain is set to 12db below max
maxMinus24 - lna gain is set to 24db below max max_minus_24 - lna gain is set to 24db below max
maxMinus36 - lna gain is set to 36db below max max_minus_36 - lna gain is set to 36db below max
maxMinus48 - lna gain is set to 48db below max max_minus_48 - lna gain is set to 48db below max
bw_mantisse bw_mantisse
sets the bandwidth of the channel filter - part one: mantisse. sets the bandwidth of the channel filter - part one: mantisse.
mantisse16 - mantisse is set to 16 mantisse16 - mantisse is set to 16
......
...@@ -367,13 +367,13 @@ int rf69_set_antenna_impedance(struct spi_device *spi, enum antennaImpedance ant ...@@ -367,13 +367,13 @@ int rf69_set_antenna_impedance(struct spi_device *spi, enum antennaImpedance ant
int rf69_set_lna_gain(struct spi_device *spi, enum lnaGain lnaGain) int rf69_set_lna_gain(struct spi_device *spi, enum lnaGain lnaGain)
{ {
switch (lnaGain) { switch (lnaGain) {
case automatic: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_AUTO); case automatic: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_AUTO);
case max: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX); case max: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX);
case maxMinus6: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_6); case max_minus_6: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_6);
case maxMinus12: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_12); case max_minus_12: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_12);
case maxMinus24: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_24); case max_minus_24: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_24);
case maxMinus36: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_36); case max_minus_36: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_36);
case maxMinus48: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_48); case max_minus_48: return rf69_read_mod_write(spi, REG_LNA, MASK_LNA_GAIN, LNA_GAIN_MAX_MINUS_48);
default: default:
dev_dbg(&spi->dev, "set: illegal input param"); dev_dbg(&spi->dev, "set: illegal input param");
return -EINVAL; return -EINVAL;
......
...@@ -68,11 +68,11 @@ enum antennaImpedance { ...@@ -68,11 +68,11 @@ enum antennaImpedance {
enum lnaGain { enum lnaGain {
automatic, automatic,
max, max,
maxMinus6, max_minus_6,
maxMinus12, max_minus_12,
maxMinus24, max_minus_24,
maxMinus36, max_minus_36,
maxMinus48, max_minus_48,
undefined undefined
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment