Commit e69a0500 authored by Valentin Vidic's avatar Valentin Vidic Committed by Greg Kroah-Hartman

staging: pi433: fix CamelCase for addressFiltering

Fixes checkpatch warning:

  CHECK: Avoid CamelCase: <addressFiltering>
Signed-off-by: default avatarValentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b52a5b79
...@@ -230,7 +230,7 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg) ...@@ -230,7 +230,7 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg)
if (ret < 0) if (ret < 0)
return ret; return ret;
} }
ret = rf69_set_adressFiltering(dev->spi, ret = rf69_set_address_filtering(dev->spi,
rx_cfg->enable_address_filtering); rx_cfg->enable_address_filtering);
if (ret < 0) if (ret < 0)
return ret; return ret;
......
...@@ -125,7 +125,7 @@ struct pi433_rx_cfg { ...@@ -125,7 +125,7 @@ struct pi433_rx_cfg {
/* packet format */ /* packet format */
enum option_on_off enable_sync; enum option_on_off enable_sync;
enum option_on_off enable_length_byte; /* should be used in combination with sync, only */ 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 */ enum option_on_off enable_crc; /* only operational, if sync on and fixed length or length byte is used */
__u8 sync_length; __u8 sync_length;
......
...@@ -684,9 +684,9 @@ int rf69_disable_crc(struct spi_device *spi) ...@@ -684,9 +684,9 @@ int rf69_disable_crc(struct spi_device *spi)
return rf69_clear_bit(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_CRC_ON); 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: case filteringOff:
return rf69_read_mod_write(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_ADDRESSFILTERING, PACKETCONFIG1_ADDRESSFILTERING_OFF); return rf69_read_mod_write(spi, REG_PACKETCONFIG1, MASK_PACKETCONFIG1_ADDRESSFILTERING, PACKETCONFIG1_ADDRESSFILTERING_OFF);
case nodeAddress: case nodeAddress:
......
...@@ -53,7 +53,7 @@ int rf69_set_sync_values(struct spi_device *spi, u8 sync_values[8]); ...@@ -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_set_packet_format(struct spi_device *spi, enum packetFormat packetFormat);
int rf69_enable_crc(struct spi_device *spi); int rf69_enable_crc(struct spi_device *spi);
int rf69_disable_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_payload_length(struct spi_device *spi, u8 payload_length);
int rf69_set_node_address(struct spi_device *spi, u8 nodeAddress); 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_broadcast_address(struct spi_device *spi, u8 broadcastAddress);
......
...@@ -128,7 +128,7 @@ enum tx_start_condition { ...@@ -128,7 +128,7 @@ enum tx_start_condition {
fifo_not_empty fifo_not_empty
}; };
enum addressFiltering { enum address_filtering {
filteringOff, filteringOff,
nodeAddress, nodeAddress,
nodeOrBroadcastAddress nodeOrBroadcastAddress
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment