Skip to content

Commit

Permalink
[PATCH] include/video/newport.h: "extern inline" -> "static inline"
Browse files Browse the repository at this point in the history
"extern inline" doesn't make much sense.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jan 10, 2006
1 parent d911233 commit 3f08ff4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/video/newport.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,16 @@ typedef struct {
#define VC2_IREG_CONTROL 0x10
#define VC2_IREG_CONFIG 0x20

extern __inline__ void newport_vc2_set(struct newport_regs *regs, unsigned char vc2ireg,
static inline void newport_vc2_set(struct newport_regs *regs,
unsigned char vc2ireg,
unsigned short val)
{
regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W3 |
NPORT_DMODE_ECINC | VC2_PROTOCOL);
regs->set.dcbdata0.byword = (vc2ireg << 24) | (val << 8);
}

extern __inline__ unsigned short newport_vc2_get(struct newport_regs *regs,
static inline unsigned short newport_vc2_get(struct newport_regs *regs,
unsigned char vc2ireg)
{
regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W1 |
Expand Down

0 comments on commit 3f08ff4

Please sign in to comment.