diff options
author | Valentin Vidic <Valentin.Vidic@CARNet.hr> | 2018-03-14 21:44:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-19 19:46:51 +0100 |
commit | bcb4f0d75bde920a3e86eeea743c6002863455fb (patch) | |
tree | c076f7eb9fa31ae398790ddfae89773debe9763c /drivers/staging/pi433 | |
parent | e4928ac29b3d1ef70bd069cf768d86ca22d88abf (diff) |
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>
Diffstat (limited to 'drivers/staging/pi433')
-rw-r--r-- | drivers/staging/pi433/Documentation/pi433.txt | 4 | ||||
-rw-r--r-- | drivers/staging/pi433/rf69.c | 4 | ||||
-rw-r--r-- | drivers/staging/pi433/rf69_enum.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/pi433/Documentation/pi433.txt b/drivers/staging/pi433/Documentation/pi433.txt index 3bb38644eb6e..d0b7000faafc 100644 --- a/drivers/staging/pi433/Documentation/pi433.txt +++ b/drivers/staging/pi433/Documentation/pi433.txt @@ -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 diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 0bc459e32f6b..5b0554823263 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -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"); diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index eabaea99949d..493bd0025453 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -135,9 +135,9 @@ enum address_filtering { }; enum dagc { - normalMode, + normal_mode, improve, - improve4LowModulationIndex + improve_for_low_modulation_index }; #endif |