staging: pi433: fix CamelCase for fifo variables
PATCH 1/1 staging: pi433: fix CamelCase for fifo variables
Fixes checkpatch warnings:
CHECK: Avoid CamelCase: <fifoEmpty>
CHECK: Avoid CamelCase: <fifoFillCondition>
CHECK: Avoid CamelCase: <fifoFull>
CHECK: Avoid CamelCase: <fifoLevel>
CHECK: Avoid CamelCase: <fifoLevelBelowThreshold>
CHECK: Avoid CamelCase: <fifoNotEmpty>
CHECK: Avoid CamelCase: <fifoOverrun>
Signed-off-by Valentin Vidic <[email protected]>
--- drivers/staging/pi433/Documentation/pi433.txt | 4 +-- drivers/staging/pi433/rf69.c | 46 +++++++++++++-------------- drivers/staging/pi433/rf69.h | 2 +- drivers/staging/pi433/rf69_enum.h | 16 +++++----- 4 files changed, 34 insertions(+), 34 deletions(-)
drivers/staging/pi433/Documentation/pi433.txt +2 -2
@@ -110,9 +110,9 @@ rf params: ramp12 - amp ramps up in 12us ramp10 - amp ramps up in 10us tx_start_condition - fifoLevel - transmission starts, if fifo is filled to + fifo_level - transmission starts, if fifo is filled to threshold level - fifoNotEmpty - transmission starts, as soon as there is one + fifo_not_empty - transmission starts, as soon as there is one byte in internal fifo repetitions This gives the option, to send a telegram multiple times. Default: 1
drivers/staging/pi433/rf69.c +23 -23
71 lines not on this page · raw message
drivers/staging/pi433/rf69.h +1 -1
@@ -57,7 +57,7 @@ int rf69_set_rssi_timeout(struct spi_device *spi, u8 timeout);int rf69_set_preamble_length (struct spi_device *spi,u16 preambleLength);int rf69_enable_sync (struct spi_device *spi);int rf69_disable_sync (struct spi_device *spi); -int rf69_set_fifo_fill_condition (struct spi_device *spi,enum fifoFillCondition fifoFillCondition); +int rf69_set_fifo_fill_condition (struct spi_device *spi,enum fifo_fill_condition fifo_fill_condition);int rf69_set_sync_size (struct spi_device *spi,u8 sync_size);int rf69_set_sync_tolerance (struct spi_device *spi,u8 syncTolerance);int rf69_set_sync_values (struct spi_device *spi,u8 syncValues[8 ]);
drivers/staging/pi433/rf69_enum.h +8 -8
@@ -130,18 +130,18 @@ enum flag { timeout, automode, syncAddressMatch, - fifoFull, -// fifoNotEmpty, collision with next enum; replaced by following enum... - fifoEmpty, - fifoLevelBelowThreshold, - fifoOverrun, + fifo_full, +// fifo_not_empty, collision with next enum; replaced by following enum... + fifo_empty, + fifo_level_below_threshold, + fifo_overrun, packetSent, payloadReady, crcOk, batteryLow }; -enum fifoFillCondition { +enum fifo_fill_condition { afterSyncInterrupt, always };
@@ -152,8 +152,8 @@ enum packetFormat { };enum txStartCondition { - fifoLevel, - fifoNotEmpty + fifo_level, + fifo_not_empty };enum addressFiltering {
Signature · 1 line
2.15.0