Skip to contentSkip to conversation

staging: pi433: fix CamelCase for fifo variables

PATCH New Valentin Vidic 1 participant 1 message Dec 19, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: pi433: fix CamelCase for fifo variables

Fixes checkpatch warnings:

CHECK: Avoid CamelCase: <fifoEmpty>
CHECK: Avoid CamelCase: <fifoFillCondition>
CHECK: Avoid CamelCase: <fifoFull>
CHECK: Avoid CamelCase: <fifoLevel>
CHECK: Avoid CamelCase: <fifoLevelBelowThreshold>
CHECK: Avoid CamelCase: <fifoNotEmpty>
CHECK: Avoid CamelCase: <fifoOverrun>

---
 drivers/staging/pi433/Documentation/pi433.txt |  4 +--
 drivers/staging/pi433/rf69.c                  | 46 +++++++++++++--------------
 drivers/staging/pi433/rf69.h                  |  2 +-
 drivers/staging/pi433/rf69_enum.h             | 16 +++++-----
 4 files changed, 34 insertions(+), 34 deletions(-)
drivers/staging/pi433/Documentation/pi433.txt +2 -2
index f79e998112fd..c082878be0b1 100644
@@ -110,9 +110,9 @@ rf params:
 		ramp12		- amp ramps up in 12us
 		ramp10		- amp ramps up in 10us
 	tx_start_condition
-		fifoLevel	- transmission starts, if fifo is filled to
+		fifo_level	- transmission starts, if fifo is filled to
 				  threshold level
-		fifoNotEmpty	- transmission starts, as soon as there is one
+		fifo_not_empty	- transmission starts, as soon as there is one
 				  byte in internal fifo
 	repetitions
 		This gives the option, to send a telegram multiple times. Default: 1
drivers/staging/pi433/rf69.c +23 -23

71 lines not on this page · raw message

drivers/staging/pi433/rf69.h +1 -1
index 079acbd8a366..ac5d8d7940b2 100644
@@ -57,7 +57,7 @@ int rf69_set_rssi_timeout(struct spi_device *spi, u8 timeout);
 int rf69_set_preamble_length(struct spi_device *spi, u16 preambleLength);
 int rf69_enable_sync(struct spi_device *spi);
 int rf69_disable_sync(struct spi_device *spi);
-int rf69_set_fifo_fill_condition(struct spi_device *spi, enum fifoFillCondition fifoFillCondition);
+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_tolerance(struct spi_device *spi, u8 syncTolerance);
 int rf69_set_sync_values(struct spi_device *spi, u8 syncValues[8]);
drivers/staging/pi433/rf69_enum.h +8 -8
index dd33126817b6..f4b0a7823c93 100644
@@ -130,18 +130,18 @@ enum flag {
 	timeout,
 	automode,
 	syncAddressMatch,
-	fifoFull,
-//	fifoNotEmpty, collision with next enum; replaced by following enum...
-	fifoEmpty,
-	fifoLevelBelowThreshold,
-	fifoOverrun,
+	fifo_full,
+//	fifo_not_empty, collision with next enum; replaced by following enum...
+	fifo_empty,
+	fifo_level_below_threshold,
+	fifo_overrun,
 	packetSent,
 	payloadReady,
 	crcOk,
 	batteryLow
 };
 
-enum fifoFillCondition {
+enum fifo_fill_condition {
 	afterSyncInterrupt,
 	always
 };
@@ -152,8 +152,8 @@ enum packetFormat {
 };
 
 enum txStartCondition {
-	fifoLevel,
-	fifoNotEmpty
+	fifo_level,
+	fifo_not_empty
 };
 
 enum addressFiltering {
Signature · 1 line
2.15.0