Commit 4e3290db authored by Valentin Vidic's avatar Valentin Vidic Committed by Greg Kroah-Hartman

staging: pi433: fix CamelCase for preambleLength variable

Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <preambleLength>
Signed-off-by: default avatarValentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 469b84f3
...@@ -590,7 +590,7 @@ int rf69_set_rssi_threshold(struct spi_device *spi, u8 threshold) ...@@ -590,7 +590,7 @@ int rf69_set_rssi_threshold(struct spi_device *spi, u8 threshold)
return rf69_write_reg(spi, REG_RSSITHRESH, threshold); return rf69_write_reg(spi, REG_RSSITHRESH, threshold);
} }
int rf69_set_preamble_length(struct spi_device *spi, u16 preambleLength) int rf69_set_preamble_length(struct spi_device *spi, u16 preamble_length)
{ {
int retval; int retval;
u8 msb, lsb; u8 msb, lsb;
...@@ -598,8 +598,8 @@ int rf69_set_preamble_length(struct spi_device *spi, u16 preambleLength) ...@@ -598,8 +598,8 @@ int rf69_set_preamble_length(struct spi_device *spi, u16 preambleLength)
/* no value check needed - u16 exactly matches register size */ /* no value check needed - u16 exactly matches register size */
/* calculate reg settings */ /* calculate reg settings */
msb = (preambleLength & 0xff00) >> 8; msb = (preamble_length & 0xff00) >> 8;
lsb = (preambleLength & 0xff); lsb = (preamble_length & 0xff);
/* transmit to chip */ /* transmit to chip */
retval = rf69_write_reg(spi, REG_PREAMBLE_MSB, msb); retval = rf69_write_reg(spi, REG_PREAMBLE_MSB, msb);
......
...@@ -44,7 +44,7 @@ int rf69_set_ook_threshold_dec(struct spi_device *spi, enum threshold_decrement ...@@ -44,7 +44,7 @@ int rf69_set_ook_threshold_dec(struct spi_device *spi, enum threshold_decrement
int rf69_set_dio_mapping(struct spi_device *spi, u8 DIONumber, u8 value); int rf69_set_dio_mapping(struct spi_device *spi, u8 DIONumber, u8 value);
bool rf69_get_flag(struct spi_device *spi, enum flag flag); bool rf69_get_flag(struct spi_device *spi, enum flag flag);
int rf69_set_rssi_threshold(struct spi_device *spi, u8 threshold); int rf69_set_rssi_threshold(struct spi_device *spi, u8 threshold);
int rf69_set_preamble_length(struct spi_device *spi, u16 preambleLength); int rf69_set_preamble_length(struct spi_device *spi, u16 preamble_length);
int rf69_enable_sync(struct spi_device *spi); int rf69_enable_sync(struct spi_device *spi);
int rf69_disable_sync(struct spi_device *spi); int rf69_disable_sync(struct spi_device *spi);
int rf69_set_fifo_fill_condition(struct spi_device *spi, enum fifo_fill_condition fifo_fill_condition); int rf69_set_fifo_fill_condition(struct spi_device *spi, enum fifo_fill_condition fifo_fill_condition);
......
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