mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 15:49:42 -04:00
staging: pi433: fix CamelCase for currentValue
Local variable storing the value for modulation register so replace with modulation_reg. Fixes checkpatch warnings: CHECK: Avoid CamelCase: <currentValue> Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0b89706583
commit
e64dbd5cd0
@@ -151,11 +151,11 @@ int rf69_set_modulation(struct spi_device *spi, enum modulation modulation)
|
||||
|
||||
static enum modulation rf69_get_modulation(struct spi_device *spi)
|
||||
{
|
||||
u8 currentValue;
|
||||
u8 modulation_reg;
|
||||
|
||||
currentValue = rf69_read_reg(spi, REG_DATAMODUL);
|
||||
modulation_reg = rf69_read_reg(spi, REG_DATAMODUL);
|
||||
|
||||
switch (currentValue & MASK_DATAMODUL_MODULATION_TYPE) {
|
||||
switch (modulation_reg & MASK_DATAMODUL_MODULATION_TYPE) {
|
||||
case DATAMODUL_MODULATION_TYPE_OOK:
|
||||
return OOK;
|
||||
case DATAMODUL_MODULATION_TYPE_FSK:
|
||||
|
||||
Reference in New Issue
Block a user