Commit 8d05bce2 authored by Luca Söthe's avatar Luca Söthe Committed by Greg Kroah-Hartman

staging: pi433: Fixed coding style issues with braces

Removed a few new lines after enum and struct names
because of the following bracket.
Signed-off-by: default avatarLuca Söthe <luca@acul.me>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 59cf568e
...@@ -58,8 +58,7 @@ ...@@ -58,8 +58,7 @@
* NOTE: struct layout is the same in 64bit and 32bit userspace. * NOTE: struct layout is the same in 64bit and 32bit userspace.
*/ */
#define PI433_TX_CFG_IOCTL_NR 0 #define PI433_TX_CFG_IOCTL_NR 0
struct pi433_tx_cfg struct pi433_tx_cfg {
{
__u32 frequency; __u32 frequency;
__u16 bit_rate; __u16 bit_rate;
__u32 dev_frequency; __u32 dev_frequency;
......
...@@ -18,14 +18,12 @@ ...@@ -18,14 +18,12 @@
#ifndef RF69_ENUM_H #ifndef RF69_ENUM_H
#define RF69_ENUM_H #define RF69_ENUM_H
enum optionOnOff enum optionOnOff {
{
optionOff, optionOff,
optionOn optionOn
}; };
enum mode enum mode {
{
mode_sleep, mode_sleep,
standby, standby,
synthesizer, synthesizer,
...@@ -33,21 +31,18 @@ enum mode ...@@ -33,21 +31,18 @@ enum mode
receive receive
}; };
enum dataMode enum dataMode {
{
packet, packet,
continuous, continuous,
continuousNoSync continuousNoSync
}; };
enum modulation enum modulation {
{
OOK, OOK,
FSK FSK
}; };
enum modShaping enum modShaping {
{
shapingOff, shapingOff,
shaping1_0, shaping1_0,
shaping0_5, shaping0_5,
...@@ -56,8 +51,7 @@ enum modShaping ...@@ -56,8 +51,7 @@ enum modShaping
shaping2BR shaping2BR
}; };
enum paRamp enum paRamp {
{
ramp3400, ramp3400,
ramp2000, ramp2000,
ramp1000, ramp1000,
...@@ -76,14 +70,12 @@ enum paRamp ...@@ -76,14 +70,12 @@ enum paRamp
ramp10 ramp10
}; };
enum antennaImpedance enum antennaImpedance {
{
fiftyOhm, fiftyOhm,
twohundretOhm twohundretOhm
}; };
enum lnaGain enum lnaGain {
{
automatic, automatic,
max, max,
maxMinus6, maxMinus6,
...@@ -94,8 +86,7 @@ enum lnaGain ...@@ -94,8 +86,7 @@ enum lnaGain
undefined undefined
}; };
enum dccPercent enum dccPercent {
{
dcc16Percent, dcc16Percent,
dcc8Percent, dcc8Percent,
dcc4Percent, dcc4Percent,
...@@ -106,22 +97,19 @@ enum dccPercent ...@@ -106,22 +97,19 @@ enum dccPercent
dcc0_125Percent dcc0_125Percent
}; };
enum mantisse enum mantisse {
{
mantisse16, mantisse16,
mantisse20, mantisse20,
mantisse24 mantisse24
}; };
enum thresholdType enum thresholdType {
{
fixed, fixed,
peak, peak,
average average
}; };
enum thresholdStep enum thresholdStep {
{
step_0_5db, step_0_5db,
step_1_0db, step_1_0db,
step_1_5db, step_1_5db,
...@@ -132,8 +120,7 @@ enum thresholdStep ...@@ -132,8 +120,7 @@ enum thresholdStep
step_6_0db step_6_0db
}; };
enum thresholdDecrement enum thresholdDecrement {
{
dec_every8th, dec_every8th,
dec_every4th, dec_every4th,
dec_every2nd, dec_every2nd,
...@@ -144,8 +131,7 @@ enum thresholdDecrement ...@@ -144,8 +131,7 @@ enum thresholdDecrement
dec_16times dec_16times
}; };
enum flag enum flag {
{
modeSwitchCompleted, modeSwitchCompleted,
readyToReceive, readyToReceive,
readyToSend, readyToSend,
...@@ -165,33 +151,28 @@ enum flag ...@@ -165,33 +151,28 @@ enum flag
batteryLow batteryLow
}; };
enum fifoFillCondition enum fifoFillCondition {
{
afterSyncInterrupt, afterSyncInterrupt,
always always
}; };
enum packetFormat enum packetFormat {
{
packetLengthFix, packetLengthFix,
packetLengthVar packetLengthVar
}; };
enum txStartCondition enum txStartCondition {
{
fifoLevel, fifoLevel,
fifoNotEmpty fifoNotEmpty
}; };
enum addressFiltering enum addressFiltering {
{
filteringOff, filteringOff,
nodeAddress, nodeAddress,
nodeOrBroadcastAddress nodeOrBroadcastAddress
}; };
enum dagc enum dagc {
{
normalMode, normalMode,
improve, improve,
improve4LowModulationIndex improve4LowModulationIndex
......
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