[PATCH] staging: pi433: Fixed coding style issues with braces

Luca Söthe luca at acul.me
Sun Nov 12 17:59:11 UTC 2017


Removed a few new lines after enum and struct names
because of the following bracket.

Signed-off-by: Luca Söthe <luca at acul.me>
---
 drivers/staging/pi433/pi433_if.h  |  3 +--
 drivers/staging/pi433/rf69_enum.h | 57 +++++++++++++--------------------------
 2 files changed, 20 insertions(+), 40 deletions(-)

diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h
index e6ed3cd..fc842c48 100644
--- a/drivers/staging/pi433/pi433_if.h
+++ b/drivers/staging/pi433/pi433_if.h
@@ -58,8 +58,7 @@
  * NOTE: struct layout is the same in 64bit and 32bit userspace.
  */
 #define PI433_TX_CFG_IOCTL_NR 	0
-struct pi433_tx_cfg
-{
+struct pi433_tx_cfg {
 	__u32			frequency;
 	__u16			bit_rate;
 	__u32			dev_frequency;
diff --git a/drivers/staging/pi433/rf69_enum.h b/drivers/staging/pi433/rf69_enum.h
index fbfb59b..86429aa 100644
--- a/drivers/staging/pi433/rf69_enum.h
+++ b/drivers/staging/pi433/rf69_enum.h
@@ -18,14 +18,12 @@
 #ifndef RF69_ENUM_H
 #define RF69_ENUM_H
 
-enum optionOnOff
-{
+enum optionOnOff {
     optionOff,
     optionOn
 };
 
-enum mode
-{
+enum mode {
     mode_sleep,
     standby,
     synthesizer,
@@ -33,21 +31,18 @@ enum mode
     receive
 };
 
-enum dataMode
-{
+enum dataMode {
     packet,
     continuous,
     continuousNoSync
 };
 
-enum modulation
-{
+enum modulation {
     OOK,
     FSK
 };
 
-enum modShaping
-{
+enum modShaping {
     shapingOff,
     shaping1_0,
     shaping0_5,
@@ -56,8 +51,7 @@ enum modShaping
     shaping2BR
 };
 
-enum paRamp
-{
+enum paRamp {
     ramp3400,
     ramp2000,
     ramp1000,
@@ -76,14 +70,12 @@ enum paRamp
     ramp10
 };
 
-enum antennaImpedance
-{
+enum antennaImpedance {
     fiftyOhm,
     twohundretOhm
 };
 
-enum lnaGain
-{
+enum lnaGain {
     automatic,
     max,
     maxMinus6,
@@ -94,8 +86,7 @@ enum lnaGain
     undefined
 };
 
-enum dccPercent
-{
+enum dccPercent {
     dcc16Percent,
     dcc8Percent,
     dcc4Percent,
@@ -106,22 +97,19 @@ enum dccPercent
     dcc0_125Percent
 };
 
-enum mantisse
-{
+enum mantisse {
     mantisse16,
     mantisse20,
     mantisse24
 };
 
-enum thresholdType
-{
+enum thresholdType {
     fixed,
     peak,
     average
 };
 
-enum thresholdStep
-{
+enum thresholdStep {
     step_0_5db,
     step_1_0db,
     step_1_5db,
@@ -132,8 +120,7 @@ enum thresholdStep
     step_6_0db
 };
 
-enum thresholdDecrement
-{
+enum thresholdDecrement {
     dec_every8th,
     dec_every4th,
     dec_every2nd,
@@ -144,8 +131,7 @@ enum thresholdDecrement
     dec_16times
 };
 
-enum flag
-{
+enum flag {
     modeSwitchCompleted,
     readyToReceive,
     readyToSend,
@@ -165,33 +151,28 @@ enum flag
     batteryLow
 };
 
-enum fifoFillCondition
-{
+enum fifoFillCondition {
     afterSyncInterrupt,
     always
 };
 
-enum packetFormat
-{
+enum packetFormat {
     packetLengthFix,
     packetLengthVar
 };
 
-enum txStartCondition
-{
+enum txStartCondition {
     fifoLevel,
     fifoNotEmpty
 };
 
-enum addressFiltering
-{
+enum addressFiltering {
     filteringOff,
     nodeAddress,
     nodeOrBroadcastAddress
 };
 
-enum dagc
-{
+enum dagc {
     normalMode,
     improve,
     improve4LowModulationIndex
-- 
2.7.4



More information about the devel mailing list