Skip to content

Commit

Permalink
staging: pi433: fix CamelCase for preambleLength variable
Browse files Browse the repository at this point in the history
Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <preambleLength>

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Valentin Vidic authored and Greg Kroah-Hartman committed Mar 19, 2018
1 parent 469b84f commit 4e3290d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/pi433/rf69.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,16 +590,16 @@ int rf69_set_rssi_threshold(struct spi_device *spi, u8 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;
u8 msb, lsb;

/* no value check needed - u16 exactly matches register size */

/* calculate reg settings */
msb = (preambleLength & 0xff00) >> 8;
lsb = (preambleLength & 0xff);
msb = (preamble_length & 0xff00) >> 8;
lsb = (preamble_length & 0xff);

/* transmit to chip */
retval = rf69_write_reg(spi, REG_PREAMBLE_MSB, msb);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/pi433/rf69.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
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_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_disable_sync(struct spi_device *spi);
int rf69_set_fifo_fill_condition(struct spi_device *spi, enum fifo_fill_condition fifo_fill_condition);
Expand Down

0 comments on commit 4e3290d

Please sign in to comment.