Skip to content

Commit

Permalink
Staging: xgifb: Remove typedefs in XGIfb.h
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Jun 22, 2010
1 parent 80adad8 commit 716083c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ static int XGIfb_ioctl(struct fb_info *info, unsigned int cmd,
break;
case XGIFB_GET_INFO: /* TW: New for communication with X driver */
{
XGIfb_info *x = (XGIfb_info *)arg;
struct XGIfb_info *x = (struct XGIfb_info *)arg;

//x->XGIfb_id = XGIFB_ID;
x->XGIfb_version = VER_MAJOR;
Expand Down
20 changes: 9 additions & 11 deletions drivers/staging/xgifb/XGIfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define XGIFB_ID 0x53495346 /* Identify myself with 'XGIF' */
#endif

typedef enum _XGI_CHIP_TYPE {
enum XGI_CHIP_TYPE {
XGI_VGALegacy = 0,
XGI_300,
XGI_630,
Expand All @@ -53,23 +53,21 @@ typedef enum _XGI_CHIP_TYPE {
XG21,
XG27,
MAX_XGI_CHIP
} XGI_CHIP_TYPE;
};

typedef enum _TVTYPE {
enum xgi_tvtype {
TVMODE_NTSC = 0,
TVMODE_PAL,
TVMODE_HIVISION,
TVTYPE_PALM, // vicki@030226
TVTYPE_PALN, // vicki@030226
TVTYPE_NTSCJ, // vicki@030226
TVMODE_TOTAL
} XGI_TV_TYPE;

};

typedef struct _XGIFB_INFO XGIfb_info;
struct _XGIFB_INFO {

unsigned long XGIfb_id;
struct XGIfb_info {
unsigned long XGIfb_id;
int chip_id; /* PCI ID of detected chip */
int memory; /* video memory in KB which XGIfb manages */
int heapstart; /* heap start (= XGIfb "mem" argument) in KB */
Expand Down Expand Up @@ -132,9 +130,9 @@ struct ap_data {
unsigned long iobase;
unsigned int mem_size;
unsigned long disp_state;
XGI_CHIP_TYPE chip;
enum XGI_CHIP_TYPE chip;
unsigned char hasVB;
XGI_TV_TYPE TV_type;
enum xgi_tvtype TV_type;
XGI_TV_PLUG TV_plug;
unsigned long version;
char reserved[256];
Expand Down Expand Up @@ -184,7 +182,7 @@ struct video_info{
unsigned char TV_type;
unsigned char TV_plug;

XGI_CHIP_TYPE chip;
enum XGI_CHIP_TYPE chip;
unsigned char revision_id;

unsigned short DstColor;
Expand Down

0 comments on commit 716083c

Please sign in to comment.