Commit 20da58cc authored by Erik Andrén's avatar Erik Andrén Committed by Greg Kroah-Hartman

Staging: agnx: Fixup rf.c checkpatch warnings

Signed-off-by: default avatarErik Andrén <erik.andren@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0f31f62d
...@@ -256,7 +256,7 @@ static void antenna_init(struct agnx_priv *priv, int num_antenna) ...@@ -256,7 +256,7 @@ static void antenna_init(struct agnx_priv *priv, int num_antenna)
agnx_write32(ctl, AGNX_GCR_THD0BTFEST, 70); agnx_write32(ctl, AGNX_GCR_THD0BTFEST, 70);
agnx_write32(ctl, AGNX_GCR_SIGHTH, 100); agnx_write32(ctl, AGNX_GCR_SIGHTH, 100);
agnx_write32(ctl, AGNX_GCR_SIGLTH, 48); agnx_write32(ctl, AGNX_GCR_SIGLTH, 48);
// agnx_write32(ctl, AGNX_GCR_SIGLTH, 16); /* agnx_write32(ctl, AGNX_GCR_SIGLTH, 16); */
break; break;
default: default:
printk(KERN_WARNING PFX "Unknow antenna number\n"); printk(KERN_WARNING PFX "Unknow antenna number\n");
...@@ -634,8 +634,7 @@ static void chain_calibrate(struct agnx_priv *priv, struct chains *chains, ...@@ -634,8 +634,7 @@ static void chain_calibrate(struct agnx_priv *priv, struct chains *chains,
} }
} /* chain_calibrate */ } /* chain_calibrate */
static inline void get_calibrete_value(struct agnx_priv *priv, struct chains *chains,
static void inline get_calibrete_value(struct agnx_priv *priv, struct chains *chains,
unsigned int num) unsigned int num)
{ {
void __iomem *ctl = priv->ctl; void __iomem *ctl = priv->ctl;
...@@ -652,7 +651,7 @@ static void inline get_calibrete_value(struct agnx_priv *priv, struct chains *ch ...@@ -652,7 +651,7 @@ static void inline get_calibrete_value(struct agnx_priv *priv, struct chains *ch
} }
if (num == 0 || num == 1 || num == 2) { if (num == 0 || num == 1 || num == 2) {
if ( 0 == chains[num].cali) if (0 == chains[num].cali)
chains[num].cali = 0xff; chains[num].cali = 0xff;
else else
chains[num].cali--; chains[num].cali--;
......
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