From: Valentin Vidic Date: Mon, 5 Mar 2018 07:02:18 +0000 (+0100) Subject: staging: pi433: fix CamelCase for Address variables X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d9a74d5f1eee238b54adccf835120670c7eb6034;p=openwrt%2Fstaging%2Fblogic.git staging: pi433: fix CamelCase for Address variables Fixes checkpatch warnings: CHECK: Avoid CamelCase: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index f419a3d4485b..c143ffc7596f 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -704,14 +704,14 @@ int rf69_set_payload_length(struct spi_device *spi, u8 payload_length) return rf69_write_reg(spi, REG_PAYLOAD_LENGTH, payload_length); } -int rf69_set_node_address(struct spi_device *spi, u8 nodeAddress) +int rf69_set_node_address(struct spi_device *spi, u8 node_address) { - return rf69_write_reg(spi, REG_NODEADRS, nodeAddress); + return rf69_write_reg(spi, REG_NODEADRS, node_address); } -int rf69_set_broadcast_address(struct spi_device *spi, u8 broadcastAddress) +int rf69_set_broadcast_address(struct spi_device *spi, u8 broadcast_address) { - return rf69_write_reg(spi, REG_BROADCASTADRS, broadcastAddress); + return rf69_write_reg(spi, REG_BROADCASTADRS, broadcast_address); } int rf69_set_tx_start_condition(struct spi_device *spi, enum tx_start_condition tx_start_condition) diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi433/rf69.h index 7b7932a553e8..677091319d7e 100644 --- a/drivers/staging/pi433/rf69.h +++ b/drivers/staging/pi433/rf69.h @@ -55,8 +55,8 @@ 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); 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_node_address(struct spi_device *spi, u8 node_address); +int rf69_set_broadcast_address(struct spi_device *spi, u8 broadcast_address); int rf69_set_tx_start_condition(struct spi_device *spi, enum tx_start_condition tx_start_condition); int rf69_set_fifo_threshold(struct spi_device *spi, u8 threshold); int rf69_set_dagc(struct spi_device *spi, enum dagc dagc);