Commit 2d2f03b0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 126bb03b
Loading
Loading
Loading
Loading
+16 −15
Original line number Diff line number Diff line
@@ -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) |	\
+2048 −1024

File changed.

Preview size limit exceeded, changes collapsed.

+150 −152
Original line number Diff line number Diff line
@@ -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;
@@ -374,7 +371,8 @@ typedef struct {
	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];
+6 −13
Original line number Diff line number Diff line
//----- < 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);


#endif // already included
#endif
+25 −24
Original line number Diff line number Diff line
//----- < smil.h> ----------------------------------------------------
/*----- < smil.h> ----------------------------------------------------*/
#ifndef SMIL_INCD
#define SMIL_INCD

@@ -190,6 +190,7 @@ struct ADDRESS
	WORD PhyBlock;	/* Physical Block Number on Zone */
	WORD LogBlock;	/* Logical Block Number of Zone */
};

typedef struct ADDRESS_T
{
	BYTE Zone;	/* Zone Number */