staging: pi433: fix CamelCase for addressFiltering
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>
This commit is contained in:
parent
b52a5b7936
commit
e69a0500f2
|
@ -230,8 +230,8 @@ 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 {
|
||||||
/* 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)
|
||||||
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]);
|
||||||
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 {
|
||||||
fifo_not_empty
|
fifo_not_empty
|
||||||
};
|
};
|
||||||
|
|
||||||
enum addressFiltering {
|
enum address_filtering {
|
||||||
filteringOff,
|
filteringOff,
|
||||||
nodeAddress,
|
nodeAddress,
|
||||||
nodeOrBroadcastAddress
|
nodeOrBroadcastAddress
|
||||||
|
|
Loading…
Reference in New Issue