staging: pi433: fix CamelCase for txStartCondition

Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <txStartCondition>

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-02-20 14:56:45 +01:00 committed by Greg Kroah-Hartman
parent 38614ed802
commit 6252016c86
4 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ struct pi433_tx_cfg {
enum paRamp pa_ramp; enum paRamp pa_ramp;
enum txStartCondition tx_start_condition; enum tx_start_condition tx_start_condition;
__u16 repetitions; __u16 repetitions;

View File

@ -714,9 +714,9 @@ int rf69_set_broadcast_address(struct spi_device *spi, u8 broadcastAddress)
return rf69_write_reg(spi, REG_BROADCASTADRS, broadcastAddress); return rf69_write_reg(spi, REG_BROADCASTADRS, broadcastAddress);
} }
int rf69_set_tx_start_condition(struct spi_device *spi, enum txStartCondition txStartCondition) int rf69_set_tx_start_condition(struct spi_device *spi, enum tx_start_condition tx_start_condition)
{ {
switch (txStartCondition) { switch (tx_start_condition) {
case fifo_level: case fifo_level:
return rf69_clear_bit(spi, REG_FIFO_THRESH, MASK_FIFO_THRESH_TXSTART); return rf69_clear_bit(spi, REG_FIFO_THRESH, MASK_FIFO_THRESH_TXSTART);
case fifo_not_empty: case fifo_not_empty:

View File

@ -57,7 +57,7 @@ int rf69_set_adressFiltering(struct spi_device *spi, enum addressFiltering addre
int rf69_set_payload_length(struct spi_device *spi, u8 payload_length); int rf69_set_payload_length(struct spi_device *spi, u8 payload_length);
int rf69_set_node_address(struct spi_device *spi, u8 nodeAddress); int rf69_set_node_address(struct spi_device *spi, u8 nodeAddress);
int rf69_set_broadcast_address(struct spi_device *spi, u8 broadcastAddress); int rf69_set_broadcast_address(struct spi_device *spi, u8 broadcastAddress);
int rf69_set_tx_start_condition(struct spi_device *spi, enum txStartCondition txStartCondition); int rf69_set_tx_start_condition(struct spi_device *spi, enum tx_start_condition tx_start_condition);
int rf69_set_fifo_threshold(struct spi_device *spi, u8 threshold); 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);

View File

@ -123,7 +123,7 @@ enum packetFormat {
packetLengthVar packetLengthVar
}; };
enum txStartCondition { enum tx_start_condition {
fifo_level, fifo_level,
fifo_not_empty fifo_not_empty
}; };