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

staging: pi433: fix CamelCase for Ohm identifiers

Fixes checkpatch warnings:

  CHECK: Avoid CamelCase: <fiftyOhm>
  CHECK: Avoid CamelCase: <twohundretOhm>
Signed-off-by: default avatarValentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 370d7ce6
...@@ -194,8 +194,8 @@ rf params: ...@@ -194,8 +194,8 @@ rf params:
step_6_0db - increase in 6 db steps step_6_0db - increase in 6 db steps
antenna_impedance antenna_impedance
sets the electrical adoption of the antenna sets the electrical adoption of the antenna
fiftyOhm - for antennas with an impedance of 50Ohm fifty_ohm - for antennas with an impedance of 50Ohm
twohundretOhm - for antennas with an impedance of 200Ohm two_hundred_ohm - for antennas with an impedance of 200Ohm
lnaGain lnaGain
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
......
...@@ -1183,7 +1183,7 @@ static int pi433_probe(struct spi_device *spi) ...@@ -1183,7 +1183,7 @@ static int pi433_probe(struct spi_device *spi)
retval = rf69_set_output_power_level(spi, 13); retval = rf69_set_output_power_level(spi, 13);
if (retval < 0) if (retval < 0)
goto minor_failed; goto minor_failed;
retval = rf69_set_antenna_impedance(spi, fiftyOhm); retval = rf69_set_antenna_impedance(spi, fifty_ohm);
if (retval < 0) if (retval < 0)
goto minor_failed; goto minor_failed;
......
...@@ -389,9 +389,9 @@ int rf69_set_pa_ramp(struct spi_device *spi, enum paRamp paRamp) ...@@ -389,9 +389,9 @@ int rf69_set_pa_ramp(struct spi_device *spi, enum paRamp paRamp)
int rf69_set_antenna_impedance(struct spi_device *spi, enum antenna_impedance antenna_impedance) int rf69_set_antenna_impedance(struct spi_device *spi, enum antenna_impedance antenna_impedance)
{ {
switch (antenna_impedance) { switch (antenna_impedance) {
case fiftyOhm: case fifty_ohm:
return rf69_clear_bit(spi, REG_LNA, MASK_LNA_ZIN); return rf69_clear_bit(spi, REG_LNA, MASK_LNA_ZIN);
case twohundretOhm: case two_hundred_ohm:
return rf69_set_bit(spi, REG_LNA, MASK_LNA_ZIN); return rf69_set_bit(spi, REG_LNA, MASK_LNA_ZIN);
default: default:
dev_dbg(&spi->dev, "set: illegal input param"); dev_dbg(&spi->dev, "set: illegal input param");
......
...@@ -61,8 +61,8 @@ enum paRamp { ...@@ -61,8 +61,8 @@ enum paRamp {
}; };
enum antenna_impedance { enum antenna_impedance {
fiftyOhm, fifty_ohm,
twohundretOhm two_hundred_ohm
}; };
enum lnaGain { enum lnaGain {
......
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