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

staging: pi433: fix CamelCase for paRamp enum

Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <paRamp>
Signed-off-by: default avatarValentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d9a74d5f
...@@ -92,7 +92,7 @@ rf params: ...@@ -92,7 +92,7 @@ rf params:
shaping0_3 - gauss filter with BT 0.3 (FSK only) shaping0_3 - gauss filter with BT 0.3 (FSK only)
shapingBR - filter cut off at BR (OOK only) shapingBR - filter cut off at BR (OOK only)
shaping2BR - filter cut off at 2*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 ramp3400 - amp ramps up in 3.4ms
ramp2000 - amp ramps up in 2.0ms ramp2000 - amp ramps up in 2.0ms
ramp1000 - amp ramps up in 1ms ramp1000 - amp ramps up in 1ms
......
...@@ -67,7 +67,7 @@ struct pi433_tx_cfg { ...@@ -67,7 +67,7 @@ struct pi433_tx_cfg {
enum modulation modulation; enum modulation modulation;
enum mod_shaping mod_shaping; enum mod_shaping mod_shaping;
enum paRamp pa_ramp; enum pa_ramp pa_ramp;
enum tx_start_condition tx_start_condition; enum tx_start_condition tx_start_condition;
......
...@@ -345,9 +345,9 @@ int rf69_set_output_power_level(struct spi_device *spi, u8 power_level) ...@@ -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); 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: case ramp3400:
return rf69_write_reg(spi, REG_PARAMP, PARAMP_3400); return rf69_write_reg(spi, REG_PARAMP, PARAMP_3400);
case ramp2000: case ramp2000:
......
...@@ -35,7 +35,7 @@ int rf69_set_frequency(struct spi_device *spi, u32 frequency); ...@@ -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_enable_amplifier(struct spi_device *spi, u8 amplifier_mask);
int rf69_disable_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_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_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 lnaGain lnaGain);
int rf69_set_bandwidth(struct spi_device *spi, enum mantisse mantisse, u8 exponent); int rf69_set_bandwidth(struct spi_device *spi, enum mantisse mantisse, u8 exponent);
......
...@@ -41,7 +41,7 @@ enum mod_shaping { ...@@ -41,7 +41,7 @@ enum mod_shaping {
SHAPING_2BR SHAPING_2BR
}; };
enum paRamp { enum pa_ramp {
ramp3400, ramp3400,
ramp2000, ramp2000,
ramp1000, ramp1000,
......
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