OSDN Git Service

staging: pi433: fix CamelCase for afterSyncInterrupt
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Mon, 5 Mar 2018 07:02:16 +0000 (08:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:22:17 +0000 (04:22 -0800)
Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <afterSyncInterrupt>

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c
drivers/staging/pi433/rf69.c
drivers/staging/pi433/rf69_enum.h

index 57db806..7302005 100644 (file)
@@ -209,7 +209,7 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg)
                        return ret;
 
                ret = rf69_set_fifo_fill_condition(dev->spi,
-                                                  afterSyncInterrupt);
+                                                  after_sync_interrupt);
                if (ret < 0)
                        return ret;
        } else {
index fc49197..a73a3d2 100644 (file)
@@ -625,7 +625,7 @@ int rf69_set_fifo_fill_condition(struct spi_device *spi, enum fifo_fill_conditio
        switch (fifo_fill_condition) {
        case always:
                return rf69_set_bit(spi, REG_SYNC_CONFIG, MASK_SYNC_CONFIG_FIFO_FILL_CONDITION);
-       case afterSyncInterrupt:
+       case after_sync_interrupt:
                return rf69_clear_bit(spi, REG_SYNC_CONFIG, MASK_SYNC_CONFIG_FIFO_FILL_CONDITION);
        default:
                dev_dbg(&spi->dev, "set: illegal input param");
index 81287ce..d82d2be 100644 (file)
@@ -114,7 +114,7 @@ enum flag {
 };
 
 enum fifo_fill_condition {
-       afterSyncInterrupt,
+       after_sync_interrupt,
        always
 };