staging: pi433: fix CamelCase for addressFiltering
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 20 Feb 2018 14:13:07 +0000 (15:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 13:53:05 +0000 (14:53 +0100)
Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <addressFiltering>

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

index e8ddc924bb04ce8305b847c1b1b78ded020f8d72..aad1debd34a2956e8e9b4700c08259a8ba8a068f 100644 (file)
@@ -230,8 +230,8 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg)
                if (ret < 0)
                        return ret;
        }
-       ret = rf69_set_adressFiltering(dev->spi,
-                                      rx_cfg->enable_address_filtering);
+       ret = rf69_set_address_filtering(dev->spi,
+                                        rx_cfg->enable_address_filtering);
        if (ret < 0)
                return ret;
 
index 22c1631d0bf0efefcd4319da6c498074f3fdb82e..b3fa4fe64c5c3524cd03fe42ed5e6e117173936c 100644 (file)
@@ -125,7 +125,7 @@ struct pi433_rx_cfg {
        /* packet format */
        enum option_on_off      enable_sync;
        enum option_on_off      enable_length_byte;       /* should be used in combination with sync, only */
-       enum addressFiltering   enable_address_filtering; /* operational with sync, only */
+       enum address_filtering  enable_address_filtering; /* operational with sync, only */
        enum option_on_off      enable_crc;               /* only operational, if sync on and fixed length or length byte is used */
 
        __u8                    sync_length;
index 91c834059710fe7b5bef8ff073cb88d72c69e88a..b2cea5f52eea3a719fd7d2a13faea6c5d4134237 100644 (file)
@@ -684,9 +684,9 @@ int rf69_disable_crc(struct spi_device *spi)
        return rf69_clear_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_CRC_ON);
 }
 
-int rf69_set_adressFiltering(struct spi_device *spi, enum addressFiltering addressFiltering)
+int rf69_set_address_filtering(struct spi_device *spi, enum address_filtering address_filtering)
 {
-       switch (addressFiltering) {
+       switch (address_filtering) {
        case filteringOff:
                return rf69_read_mod_write(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_ADDRESSFILTERING, PACKETCONFIG1_ADDRESSFILTERING_OFF);
        case nodeAddress:
index 21d7034e2c799e92dd1c0708717221aa8b8b2284..cf89b556cb00270babd9c2c9f9371b5ab4f805d3 100644 (file)
@@ -53,7 +53,7 @@ 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_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_address_filtering(struct spi_device *spi, enum address_filtering address_filtering);
 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);
index 478e3a4c494810fd73d31e672c326e27a95144b9..cba3c5b3995c3e07ddab7c5f02ca8bd56e07113a 100644 (file)
@@ -128,7 +128,7 @@ enum tx_start_condition {
        fifo_not_empty
 };
 
-enum addressFiltering {
+enum address_filtering {
        filteringOff,
        nodeAddress,
        nodeOrBroadcastAddress