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

staging: pi433: fix CamelCase for dagc enum

Fixes checkpatch warnings:

  CHECK: Avoid CamelCase: <normalMode>
  CHECK: Avoid CamelCase: <improve4LowModulationIndex>
Signed-off-by: default avatarValentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e4928ac2
...@@ -215,9 +215,9 @@ rf params: ...@@ -215,9 +215,9 @@ rf params:
Allowd values: 0...7 Allowd values: 0...7
dagc; dagc;
operation mode of the digital automatic gain control operation mode of the digital automatic gain control
normalMode normal_mode
improve improve
improve4LowModulationIndex improve_for_low_modulation_index
packet format: packet format:
enable_sync enable_sync
......
...@@ -751,11 +751,11 @@ int rf69_set_fifo_threshold(struct spi_device *spi, u8 threshold) ...@@ -751,11 +751,11 @@ int rf69_set_fifo_threshold(struct spi_device *spi, u8 threshold)
int rf69_set_dagc(struct spi_device *spi, enum dagc dagc) int rf69_set_dagc(struct spi_device *spi, enum dagc dagc)
{ {
switch (dagc) { switch (dagc) {
case normalMode: case normal_mode:
return rf69_write_reg(spi, REG_TESTDAGC, DAGC_NORMAL); return rf69_write_reg(spi, REG_TESTDAGC, DAGC_NORMAL);
case improve: case improve:
return rf69_write_reg(spi, REG_TESTDAGC, DAGC_IMPROVED_LOWBETA0); return rf69_write_reg(spi, REG_TESTDAGC, DAGC_IMPROVED_LOWBETA0);
case improve4LowModulationIndex: case improve_for_low_modulation_index:
return rf69_write_reg(spi, REG_TESTDAGC, DAGC_IMPROVED_LOWBETA1); return rf69_write_reg(spi, REG_TESTDAGC, DAGC_IMPROVED_LOWBETA1);
default: default:
dev_dbg(&spi->dev, "set: illegal input param"); dev_dbg(&spi->dev, "set: illegal input param");
......
...@@ -135,9 +135,9 @@ enum address_filtering { ...@@ -135,9 +135,9 @@ enum address_filtering {
}; };
enum dagc { enum dagc {
normalMode, normal_mode,
improve, improve,
improve4LowModulationIndex improve_for_low_modulation_index
}; };
#endif #endif
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