Skip to content

Commit

Permalink
staging: sm7xxfb: annotate iomem pointers
Browse files Browse the repository at this point in the history
This patch annotates iomem pointers.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Javier M. Mellid authored and Greg Kroah-Hartman committed Sep 17, 2012
1 parent 20d471c commit 5d0c770
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/sm7xxfb/sm7xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define dac_reg (0x3c8)
#define dac_val (0x3c9)

extern char __iomem *smtc_RegBaseAddress;
extern void __iomem *smtc_RegBaseAddress;
#define smtc_mmiowb(dat, reg) writeb(dat, smtc_RegBaseAddress + reg)
#define smtc_mmioww(dat, reg) writew(dat, smtc_RegBaseAddress + reg)
#define smtc_mmiowl(dat, reg) writel(dat, smtc_RegBaseAddress + reg)
Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/sm7xxfb/sm7xxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ struct smtcfb_info {
u16 chip_id;
u8 chip_rev_id;

unsigned char __iomem *m_pMMIO;
char __iomem *m_pLFB;
char *m_pDPR;
char *m_pVPR;
char *m_pCPR;
void __iomem *m_pMMIO;
void __iomem *m_pLFB;
void __iomem *m_pDPR;
void __iomem *m_pVPR;
void __iomem *m_pCPR;

u_int width;
u_int height;
Expand All @@ -56,8 +56,8 @@ struct smtcfb_info {
u32 colreg[17];
};

char __iomem *smtc_RegBaseAddress; /* Memory Map IO starting address */
char __iomem *smtc_VRAMBaseAddress; /* video memory starting address */
void __iomem *smtc_RegBaseAddress; /* Memory Map IO starting address */
void __iomem *smtc_VRAMBaseAddress; /* video memory starting address */

static struct fb_var_screeninfo smtcfb_var = {
.xres = 1024,
Expand Down

0 comments on commit 5d0c770

Please sign in to comment.