* [PATCH] Staging : winbond : fix coding style issue in phy_calibration.c
[not found] <Staging-winbond-fix>
@ 2011-08-09 23:13 ` Kolymine
2011-08-10 2:17 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Kolymine @ 2011-08-09 23:13 UTC (permalink / raw)
To: linux-kernel; +Cc: Kolymine
Thus us a patch to the phy_calibration.c file that fixes up coding style warning found by the checkpatch.pl tool
Signed-off-by: Vincent Abel-Grimalt <kolymine@gmail.com>
---
drivers/staging/winbond/phy_calibration.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/winbond/phy_calibration.c b/drivers/staging/winbond/phy_calibration.c
index c5a07fb..77a3fff 100644
--- a/drivers/staging/winbond/phy_calibration.c
+++ b/drivers/staging/winbond/phy_calibration.c
@@ -24,7 +24,7 @@
#define AG_CONST 0.6072529350
#define FIXED(X) ((s32)((X) * 32768.0))
-#define DEG2RAD(X) 0.017453 * (X)
+#define DEG2RAD(X) (0.017453 * (X))
static const s32 Angles[] = {
FIXED(DEG2RAD(45.0)), FIXED(DEG2RAD(26.565)), FIXED(DEG2RAD(14.0362)),
@@ -51,7 +51,7 @@ s32 _s13_to_s32(u32 data)
if ((data & BIT(12)) != 0)
val |= 0xFFFFF000;
- return ((s32) val);
+ return (s32) val;
}
u32 _s32_to_s13(s32 data)
@@ -184,7 +184,7 @@ s32 _floor(s32 n)
else
n -= 5;
- return (n/10);
+ return n/10;
}
/****************************************************************************/
@@ -455,7 +455,7 @@ void _txidac_dc_offset_cancellation_winbond(struct hw_data *phw_data)
phy_set_rf_data(phw_data, 11, (11<<24)|0x1901D6);
/* 0x05 0x24C60A ; 09318 ; Calibration (6c). setting TX-VGA gain: TXGCH=2 & GPK=110 --> to be optimized */
phy_set_rf_data(phw_data, 5, (5<<24)|0x24C48A);
- /* 0x06 0x06880C ; 01A20 ; Calibration (6d). RXGCH=00; RXGCL=100 000 (RXVGA=32) --> to be optimized */
+ /* 0x06 0x06880C ; 01A20 ; Calibration (6d). RXGCH=00; RXGCL=100 000 (RXVGA=32) --> to be optimized */
phy_set_rf_data(phw_data, 6, (6<<24)|0x06890C);
/* 0x00 0xFDF1C0 ; 3F7C7 ; Calibration (6e). turn on IQ imbalance/Test mode */
phy_set_rf_data(phw_data, 0, (0<<24)|0xFDF1C0);
@@ -577,7 +577,7 @@ void _txqdac_dc_offset_cacellation_winbond(struct hw_data *phw_data)
phy_set_rf_data(phw_data, 11, (11<<24)|0x1901D6);
/* 0x05 0x24C60A ; 09318 ; Calibration (6c). setting TX-VGA gain: TXGCH=2 & GPK=110 --> to be optimized */
phy_set_rf_data(phw_data, 5, (5<<24)|0x24C48A);
- /* 0x06 0x06880C ; 01A20 ; Calibration (6d). RXGCH=00; RXGCL=100 000 (RXVGA=32) --> to be optimized */
+ /* 0x06 0x06880C ; 01A20 ; Calibration (6d). RXGCH=00; RXGCL=100 000 (RXVGA=32) --> to be optimized */
phy_set_rf_data(phw_data, 6, (6<<24)|0x06890C);
/* 0x00 0xFDF1C0 ; 3F7C7 ; Calibration (6e). turn on IQ imbalance/Test mode */
phy_set_rf_data(phw_data, 0, (0<<24)|0xFDF1C0);
@@ -974,7 +974,7 @@ void _tx_iq_calibration_winbond(struct hw_data *phw_data)
phy_set_rf_data(phw_data, 11, (11<<24)|0x19BDD6); /* 20060612.1.a 0x1905D6); */
/* 0x05 0x24C60A ; 09318 ; Calibration (6c). setting TX-VGA gain: TXGCH=2 & GPK=110 --> to be optimized */
phy_set_rf_data(phw_data, 5, (5<<24)|0x24C60A); /* 0x24C60A (high temperature) */
- /* 0x06 0x06880C ; 01A20 ; Calibration (6d). RXGCH=00; RXGCL=100 000 (RXVGA=32) --> to be optimized */
+ /* 0x06 0x06880C ; 01A20 ; Calibration (6d). RXGCH=00; RXGCL=100 000 (RXVGA=32) --> to be optimized */
phy_set_rf_data(phw_data, 6, (6<<24)|0x34880C); /* 20060612.1.a 0x06890C); */
/* 0x00 0xFDF1C0 ; 3F7C7 ; Calibration (6e). turn on IQ imbalance/Test mode */
phy_set_rf_data(phw_data, 0, (0<<24)|0xFDF1C0);
--
1.7.4.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Staging : winbond : fix coding style issue in phy_calibration.c
2011-08-09 23:13 ` [PATCH] Staging : winbond : fix coding style issue in phy_calibration.c Kolymine
@ 2011-08-10 2:17 ` Greg KH
[not found] ` <CAEgfSJho=MUS+gDrb-b9dJhP7dX4zTBW3jL98jpxVUDssyEX9w@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2011-08-10 2:17 UTC (permalink / raw)
To: Kolymine; +Cc: linux-kernel
On Wed, Aug 10, 2011 at 01:13:38AM +0200, Kolymine wrote:
> Thus us a patch to the phy_calibration.c file that fixes up coding style warning found by the checkpatch.pl tool
>
> Signed-off-by: Vincent Abel-Grimalt <kolymine@gmail.com>
> ---
> drivers/staging/winbond/phy_calibration.c | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
Please use the scripts/get_maintainer.pl tool to determine who to send
patches to, so they don't get lost.
I've picked this one up for now, but please be more careful in the
future.
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Fwd: [PATCH] Staging : winbond : fix coding style issue in phy_calibration.c
[not found] ` <CAEgfSJho=MUS+gDrb-b9dJhP7dX4zTBW3jL98jpxVUDssyEX9w@mail.gmail.com>
@ 2011-08-10 17:11 ` Kolymine
0 siblings, 0 replies; 3+ messages in thread
From: Kolymine @ 2011-08-10 17:11 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, Kolymine
Thanks Greg,
i have (mis)used it.
Will check what happened tonight
Regards,
Vincent
Le 10 août 2011 04:17, "Greg KH" <greg@kroah.com> a écrit :
> On Wed, Aug 10, 2011 at 01:13:38AM +0200, Kolymine wrote:
>> Thus us a patch to the phy_calibration.c file that fixes up coding style warning found by the checkpatch.pl tool
>>
>> Signed-off-by: Vincent Abel-Grimalt <kolymine@gmail.com>
>> ---
>> drivers/staging/winbond/phy_calibration.c | 12 ++++++------
>> 1 files changed, 6 insertions(+), 6 deletions(-)
>
> Please use the scripts/get_maintainer.pl tool to determine who to send
> patches to, so they don't get lost.
>
> I've picked this one up for now, but please be more careful in the
> future.
>
> greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-10 17:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <Staging-winbond-fix>
2011-08-09 23:13 ` [PATCH] Staging : winbond : fix coding style issue in phy_calibration.c Kolymine
2011-08-10 2:17 ` Greg KH
[not found] ` <CAEgfSJho=MUS+gDrb-b9dJhP7dX4zTBW3jL98jpxVUDssyEX9w@mail.gmail.com>
2011-08-10 17:11 ` Fwd: " Kolymine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®