diff options
author | Valentin Vidic <Valentin.Vidic@CARNet.hr> | 2018-02-20 14:56:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-22 14:53:05 +0100 |
commit | 6252016c8697c4597cd16628c2d3081b8d4a22e6 (patch) | |
tree | 496de8b4e783894998658144d70c103a7c417958 /drivers | |
parent | staging: comedi: Use '"%s:", __func__' instead of function name (diff) | |
download | linux-6252016c8697c4597cd16628c2d3081b8d4a22e6.tar.xz linux-6252016c8697c4597cd16628c2d3081b8d4a22e6.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/pi433/pi433_if.h | 2 | ||||
-rw-r--r-- | drivers/staging/pi433/rf69.c | 4 | ||||
-rw-r--r-- | drivers/staging/pi433/rf69.h | 2 | ||||
-rw-r--r-- | drivers/staging/pi433/rf69_enum.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index c4e4ea086a24..69847f978a69 100644 --- a/drivers/staging/pi433/pi433_if.h +++ b/drivers/staging/pi433/pi433_if.h @@ -69,7 +69,7 @@ struct pi433_tx_cfg { enum paRamp pa_ramp; - enum txStartCondition tx_start_condition; + enum tx_start_condition tx_start_condition; __u16 repetitions; diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 42c2e1c6b386..722d95a3777f 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -714,9 +714,9 @@ int rf69_set_broadcast_address(struct spi_device *spi, u8 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: return rf69_clear_bit(spi, REG_FIFO_THRESH, MASK_FIFO_THRESH_TXSTART); case fifo_not_empty: diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 2c0d130f7a03..147d89390745 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -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_node_address(struct spi_device *spi, u8 nodeAddress); 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_dagc(struct spi_device *spi, enum dagc dagc); diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h index 5629af716e4f..196c95dfe327 100644 --- a/drivers/staging/pi433/rf69_enum.h +++ b/drivers/staging/pi433/rf69_enum.h @@ -123,7 +123,7 @@ enum packetFormat { packetLengthVar }; -enum txStartCondition { +enum tx_start_condition { fifo_level, fifo_not_empty }; |