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

  CHECK: Avoid CamelCase: <packetFormat>
  CHECK: Avoid CamelCase: <packetLengthFix>
  CHECK: Avoid CamelCase: <packetLengthVar>

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 aad1debd34a2956e8e9b4700c08259a8ba8a068f..b1cbec876857302b30d33c545dedfa2ed5b1f572 100644 (file)
@@ -222,11 +222,11 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg)
                        return ret;
        }
        if (rx_cfg->enable_length_byte == OPTION_ON) {
-               ret = rf69_set_packet_format(dev->spi, packetLengthVar);
+               ret = rf69_set_packet_format(dev->spi, packet_length_var);
                if (ret < 0)
                        return ret;
        } else {
-               ret = rf69_set_packet_format(dev->spi, packetLengthFix);
+               ret = rf69_set_packet_format(dev->spi, packet_length_fix);
                if (ret < 0)
                        return ret;
        }
@@ -337,11 +337,11 @@ rf69_set_tx_cfg(struct pi433_device *dev, struct pi433_tx_cfg *tx_cfg)
        }
 
        if (tx_cfg->enable_length_byte == OPTION_ON) {
-               ret = rf69_set_packet_format(dev->spi, packetLengthVar);
+               ret = rf69_set_packet_format(dev->spi, packet_length_var);
                if (ret < 0)
                        return ret;
        } else {
-               ret = rf69_set_packet_format(dev->spi, packetLengthFix);
+               ret = rf69_set_packet_format(dev->spi, packet_length_fix);
                if (ret < 0)
                        return ret;
        }
index b2cea5f52eea3a719fd7d2a13faea6c5d4134237..54d8105b5812243b70a5e407a7afb7e8c7da3dbd 100644 (file)
@@ -661,12 +661,12 @@ int rf69_set_sync_values(struct spi_device *spi, u8 sync_values[8])
        return retval;
 }
 
-int rf69_set_packet_format(struct spi_device *spi, enum packetFormat packetFormat)
+int rf69_set_packet_format(struct spi_device *spi, enum packet_format packet_format)
 {
-       switch (packetFormat) {
-       case packetLengthVar:
+       switch (packet_format) {
+       case packet_length_var:
                return rf69_set_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_PAKET_FORMAT_VARIABLE);
-       case packetLengthFix:
+       case packet_length_fix:
                return rf69_clear_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_PAKET_FORMAT_VARIABLE);
        default:
                dev_dbg(&spi->dev, "set: illegal input param");
index cf89b556cb00270babd9c2c9f9371b5ab4f805d3..7b7932a553e8023fe9de9f3eca3a709b85e8d6d9 100644 (file)
@@ -50,7 +50,7 @@ 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_sync_size(struct spi_device *spi, u8 sync_size);
 int rf69_set_sync_values(struct spi_device *spi, u8 sync_values[8]);
-int rf69_set_packet_format(struct spi_device *spi, enum packetFormat packetFormat);
+int rf69_set_packet_format(struct spi_device *spi, enum packet_format packet_format);
 int rf69_enable_crc(struct spi_device *spi);
 int rf69_disable_crc(struct spi_device *spi);
 int rf69_set_address_filtering(struct spi_device *spi, enum address_filtering address_filtering);
index cba3c5b3995c3e07ddab7c5f02ca8bd56e07113a..682b667bf342812fac16913d92d6ed9ccfb8f22d 100644 (file)
@@ -118,9 +118,9 @@ enum fifo_fill_condition {
        always
 };
 
-enum packetFormat {
-       packetLengthFix,
-       packetLengthVar
+enum packet_format {
+       packet_length_fix,
+       packet_length_var
 };
 
 enum tx_start_condition {