staging: pi433: fix CamelCase for payload identifiers
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Mon, 25 Dec 2017 18:20:56 +0000 (19:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:32:27 +0000 (16:32 +0100)
Fixes checkpatch warnings:

  CHECK: Avoid CamelCase: <payloadLength>
  CHECK: Avoid CamelCase: <payloadReady>

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.h
drivers/staging/pi433/rf69_enum.h

index 1d7c50c1ac23b2fcaaea9a4a8e1e6ee3c646a639..4de003fe72e77b1a0be8fb3b22ab0c4d04cd32ad 100644 (file)
@@ -510,7 +510,7 @@ pi433_receive(void *data)
 
        /* get payload */
        while (dev->rx_position < bytes_total) {
-               if (!rf69_get_flag(dev->spi, payloadReady)) {
+               if (!rf69_get_flag(dev->spi, payload_ready)) {
                        retval = wait_event_interruptible(dev->fifo_wait_queue,
                                                          dev->free_in_fifo < FIFO_SIZE);
                        if (retval) /* wait was interrupted */
index c214b4a159f274287a3a28ce39d5c4fbe4460a6b..bdd00f7507650a373c11c3a3765a3b34e02b9701 100644 (file)
@@ -509,7 +509,7 @@ bool rf69_get_flag(struct spi_device *spi, enum flag flag)
        case fifo_level_below_threshold: return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_LEVEL);
        case fifo_overrun:               return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_OVERRUN);
        case packetSent:                 return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_PACKET_SENT);
-       case payloadReady:               return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_PAYLOAD_READY);
+       case payload_ready:              return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_PAYLOAD_READY);
        case crcOk:                      return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_CRC_OK);
        case batteryLow:                 return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_LOW_BAT);
        default:                         return false;
@@ -625,9 +625,9 @@ int rf69_set_adressFiltering(struct spi_device *spi, enum addressFiltering addre
        }
 }
 
-int rf69_set_payload_length(struct spi_device *spi, u8 payloadLength)
+int rf69_set_payload_length(struct spi_device *spi, u8 payload_length)
 {
-       return rf69_write_reg(spi, REG_PAYLOAD_LENGTH, payloadLength);
+       return rf69_write_reg(spi, REG_PAYLOAD_LENGTH, payload_length);
 }
 
 int rf69_set_node_address(struct spi_device *spi, u8 nodeAddress)
index 503372a07b4c5fc344ab8a288777e9357f162d4e..09d221b8b6df4fc00305e6567c6a70406da9beae 100644 (file)
@@ -54,7 +54,7 @@ int rf69_set_packet_format(struct spi_device *spi, enum packetFormat packetForma
 int rf69_enable_crc(struct spi_device *spi);
 int rf69_disable_crc(struct spi_device *spi);
 int rf69_set_adressFiltering(struct spi_device *spi, enum addressFiltering addressFiltering);
-int rf69_set_payload_length(struct spi_device *spi, u8 payloadLength);
+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);
index 77b97d173f87c27e8b4e274c8d7bd5e935a09f5d..03440cfa957ceb24af637785255d852ce9f9121f 100644 (file)
@@ -108,7 +108,7 @@ enum flag {
        fifo_level_below_threshold,
        fifo_overrun,
        packetSent,
-       payloadReady,
+       payload_ready,
        crcOk,
        batteryLow
 };