staging: pi433: fix CamelCase for dagc enum

Fixes checkpatch warnings:

  CHECK: Avoid CamelCase: <normalMode>
  CHECK: Avoid CamelCase: <improve4LowModulationIndex>

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Valentin Vidic 2018-03-14 21:44:07 +01:00 committed by Greg Kroah-Hartman
parent e4928ac29b
commit bcb4f0d75b
3 changed files with 6 additions and 6 deletions

View file

@ -215,9 +215,9 @@ rf params:
Allowd values: 0...7
dagc;
operation mode of the digital automatic gain control
normalMode
normal_mode
improve
improve4LowModulationIndex
improve_for_low_modulation_index
packet format:
enable_sync

View file

@ -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)
{
switch (dagc) {
case normalMode:
case normal_mode:
return rf69_write_reg(spi, REG_TESTDAGC, DAGC_NORMAL);
case improve:
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);
default:
dev_dbg(&spi->dev, "set: illegal input param");

View file

@ -135,9 +135,9 @@ enum address_filtering {
};
enum dagc {
normalMode,
normal_mode,
improve,
improve4LowModulationIndex
improve_for_low_modulation_index
};
#endif