Skip to content

Commit

Permalink
staging: pi433: fix CamelCase for dagc enum
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Valentin Vidic authored and Greg Kroah-Hartman committed Mar 19, 2018
1 parent e4928ac commit bcb4f0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/pi433/Documentation/pi433.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/pi433/rf69.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/pi433/rf69_enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ enum address_filtering {
};

enum dagc {
normalMode,
normal_mode,
improve,
improve4LowModulationIndex
improve_for_low_modulation_index
};

#endif

0 comments on commit bcb4f0d

Please sign in to comment.