Commit 6252016c authored by Valentin Vidic's avatar Valentin Vidic Committed by Greg Kroah-Hartman

staging: pi433: fix CamelCase for txStartCondition

Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <txStartCondition>
Signed-off-by: default avatarValentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 38614ed8
...@@ -69,7 +69,7 @@ struct pi433_tx_cfg { ...@@ -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;
......
...@@ -714,9 +714,9 @@ int rf69_set_broadcast_address(struct spi_device *spi, u8 broadcastAddress) ...@@ -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:
......
...@@ -57,7 +57,7 @@ int rf69_set_adressFiltering(struct spi_device *spi, enum addressFiltering addre ...@@ -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);
......
...@@ -123,7 +123,7 @@ enum packetFormat { ...@@ -123,7 +123,7 @@ enum packetFormat {
packetLengthVar packetLengthVar
}; };
enum txStartCondition { enum tx_start_condition {
fifo_level, fifo_level,
fifo_not_empty fifo_not_empty
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment