Staging: keucr: fix up some coding style issues in the .h files

This resolves a few of the coding style issues in the .h files
for this driver.  It doesn't get all of them by far, but it's a
good start.

Cc: Al Cho <acho@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Greg Kroah-Hartman 2010-09-08 02:47:47 -07:00
parent 126bb03b46
commit 2d2f03b022
5 changed files with 2245 additions and 1228 deletions

View File

@ -10,7 +10,8 @@ typedef u16 *PWORD;
typedef u32 DWORD;
typedef u32 *PDWORD;
#define swapWORD(w) ((((unsigned short)(w) << 8) & 0xff00) | (((unsigned short)(w) >> 8) & 0x00ff))
#define swapWORD(w) ((((unsigned short)(w) << 8) & 0xff00) | \
(((unsigned short)(w) >> 8) & 0x00ff))
#define swapDWORD(dw) ((((unsigned long)(dw) << 24) & 0xff000000) | \
(((unsigned long)(dw) << 8) & 0x00ff0000) | \
(((unsigned long)(dw) >> 8) & 0x0000ff00) | \

File diff suppressed because it is too large Load Diff

View File

@ -300,7 +300,7 @@ typedef struct {
} MemStickBootBlockCIS;
typedef struct {
#define MS_IDI_GENERAL_CONF 0x848A
#define MS_IDI_GENERAL_CONF 0x848A
WORD wIDIgeneralConfiguration; // 0
WORD wIDInumberOfCylinder; // 1
WORD wIDIreserved0; // 2
@ -334,15 +334,12 @@ typedef struct {
} MemStickBootBlockIDI;
typedef struct {
union
{
union {
MemStickBootBlockCIS cis;
BYTE dmy[256];
} cis;
union
{
union {
MemStickBootBlockIDI idi;
BYTE dmy[256];
} idi;
@ -371,10 +368,11 @@ typedef struct {
WORD NumberOfPhyBlock;
WORD NumberOfLogBlock;
WORD NumberOfSegment;
WORD *Phy2LogMap; //phy2log table
WORD *Log2PhyMap; //log2phy table
WORD *Phy2LogMap; // phy2log table
WORD *Log2PhyMap; // log2phy table
WORD wrtblk;
BYTE pagemap[(MS_MAX_PAGES_PER_BLOCK+(MS_LIB_BITS_PER_BYTE-1))/MS_LIB_BITS_PER_BYTE];
BYTE pagemap[(MS_MAX_PAGES_PER_BLOCK + (MS_LIB_BITS_PER_BYTE-1)) /
MS_LIB_BITS_PER_BYTE];
BYTE *blkpag;
MS_LibTypeExtdat *blkext;
BYTE copybuf[512];

View File

@ -1,4 +1,4 @@
//----- < SMCommon.h> --------------------------------------------------
/*----- < SMCommon.h> --------------------------------------------------*/
#ifndef SMCOMMON_INCD
#define SMCOMMON_INCD
@ -24,17 +24,10 @@ Define Difinetion
#define ERR_IllegalFmt 0x0031 /* Medium Format Corrupted */
#define ERR_NoSmartMedia 0x003A /* Medium Not Present */
/***************************************************************************/
//#define SUCCESS 0 /* SUCCESS */
//#define ERROR -1 /* ERROR */
char Bit_D_Count(BYTE);
char Bit_D_CountWord(WORD);
void StringCopy(char *, char *, int);
int StringCmp(char *, char *, int);
/***************************************************************************/
char Bit_D_Count (BYTE);
char Bit_D_CountWord (WORD);
void StringCopy (char *, char *, int);
int StringCmp (char *, char *, int);
#endif // already included
#endif

View File

@ -1,4 +1,4 @@
//----- < smil.h> ----------------------------------------------------
/*----- < smil.h> ----------------------------------------------------*/
#ifndef SMIL_INCD
#define SMIL_INCD
@ -190,13 +190,14 @@ struct ADDRESS
WORD PhyBlock; /* Physical Block Number on Zone */
WORD LogBlock; /* Logical Block Number of Zone */
};
typedef struct ADDRESS_T
{
BYTE Zone; /* Zone Number */
BYTE Sector; /* Sector(512byte) Number on Block */
WORD PhyBlock; /* Physical Block Number on Zone */
WORD LogBlock; /* Logical Block Number of Zone */
}*ADDRESS_T;
} *ADDRESS_T;
struct CIS_AREA
{