mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sankar P <sankar.curiosity@gmail.com>
To: gregkh@suse.de, pavel@ucw.cz, penberg@cs.helsinki.fi,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	sankar.curiosity@gmail.com
Subject: [PATCH 4/6] staging: winbond: Remove typedef for standard types
Date: Sat, 20 Mar 2010 02:11:02 +0530	[thread overview]
Message-ID: <1269031264-2327-5-git-send-email-sankar.curiosity@gmail.com> (raw)
In-Reply-To: <1269031264-2327-4-git-send-email-sankar.curiosity@gmail.com>

Remove the typedef named "fixed" used for the standard type s32

Signed-off-by: Sankar P <sankar.curiosity@gmail.com>
---
 drivers/staging/winbond/phy_calibration.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/winbond/phy_calibration.c b/drivers/staging/winbond/phy_calibration.c
index 8c56962..a8334f9 100644
--- a/drivers/staging/winbond/phy_calibration.c
+++ b/drivers/staging/winbond/phy_calibration.c
@@ -25,10 +25,7 @@
 #define FIXED(X)        ((s32)((X) * 32768.0))
 #define DEG2RAD(X)      0.017453 * (X)
 
-/****************** LOCAL TYPE DEFINITION SECTION ***************************/
-typedef s32         fixed; /* 16.16 fixed-point */
-
-static const fixed Angles[]=
+static const s32 Angles[] =
 {
     FIXED(DEG2RAD(45.0)),    FIXED(DEG2RAD(26.565)),  FIXED(DEG2RAD(14.0362)),
     FIXED(DEG2RAD(7.12502)), FIXED(DEG2RAD(3.57633)), FIXED(DEG2RAD(1.78991)),
@@ -300,7 +297,7 @@ u32 _sqrt(u32 sqsum)
 /****************************************************************************/
 void _sin_cos(s32 angle, s32 *sin, s32 *cos)
 {
-    fixed       X, Y, TargetAngle, CurrAngle;
+    s32 X, Y, TargetAngle, CurrAngle;
     unsigned    Step;
 
     X=FIXED(AG_CONST);      // AG_CONST * cos(0)
@@ -310,7 +307,7 @@ void _sin_cos(s32 angle, s32 *sin, s32 *cos)
 
     for (Step=0; Step < 12; Step++)
     {
-        fixed NewX;
+	s32 NewX;
 
         if(TargetAngle > CurrAngle)
         {
-- 
1.6.4.2


  reply	other threads:[~2010-03-19 20:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-19 20:40 [PATCH 0/6] staging: winbond: Cleanups Sankar P
2010-03-19 20:40 ` [PATCH 1/6] staging: winbond: Convert typedef struct _PMKID to struct pmkid Sankar P
2010-03-19 20:41   ` [PATCH 2/6] staging: winbond: Remove unused enum enum_PowerManagementMode Sankar P
2010-03-19 20:41     ` [PATCH 3/6] staging: winbond: Convert typedef struct _STRUCT_SELECTOR Sankar P
2010-03-19 20:41       ` Sankar P [this message]
2010-03-19 20:41         ` [PATCH 5/6] staging: winbond: Convert typedef struct _MLME_FRAME to struct Sankar P
2010-03-19 20:41           ` [PATCH 6/6] staging: winbond: Convert typedef struct _SCAN_REQ_PARA " Sankar P
2010-03-20  0:17             ` Pavel Machek
2010-03-20  0:17           ` [PATCH 5/6] staging: winbond: Convert typedef struct _MLME_FRAME " Pavel Machek
2010-03-20  0:16         ` [PATCH 4/6] staging: winbond: Remove typedef for standard types Pavel Machek
2010-03-20  0:15       ` [PATCH 3/6] staging: winbond: Convert typedef struct _STRUCT_SELECTOR Pavel Machek
2010-03-20  0:14     ` [PATCH 2/6] staging: winbond: Remove unused enum enum_PowerManagementMode Pavel Machek
2010-03-20  0:13   ` [PATCH 1/6] staging: winbond: Convert typedef struct _PMKID to struct pmkid Pavel Machek
2010-03-21 12:40 ` [PATCH 0/6] staging: winbond: Cleanups Pekka Enberg
2010-04-28 23:12   ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1269031264-2327-5-git-send-email-sankar.curiosity@gmail.com \
    --to=sankar.curiosity@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=penberg@cs.helsinki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome