diff options
| -rw-r--r-- | include/video/newport.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/video/newport.h b/include/video/newport.h index 812dac5b55f4..1f5ebeaa818f 100644 --- a/include/video/newport.h +++ b/include/video/newport.h | |||
| @@ -382,7 +382,8 @@ typedef struct { | |||
| 382 | #define VC2_IREG_CONTROL 0x10 | 382 | #define VC2_IREG_CONTROL 0x10 |
| 383 | #define VC2_IREG_CONFIG 0x20 | 383 | #define VC2_IREG_CONFIG 0x20 |
| 384 | 384 | ||
| 385 | extern __inline__ void newport_vc2_set(struct newport_regs *regs, unsigned char vc2ireg, | 385 | static inline void newport_vc2_set(struct newport_regs *regs, |
| 386 | unsigned char vc2ireg, | ||
| 386 | unsigned short val) | 387 | unsigned short val) |
| 387 | { | 388 | { |
| 388 | regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W3 | | 389 | regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W3 | |
| @@ -390,7 +391,7 @@ extern __inline__ void newport_vc2_set(struct newport_regs *regs, unsigned char | |||
| 390 | regs->set.dcbdata0.byword = (vc2ireg << 24) | (val << 8); | 391 | regs->set.dcbdata0.byword = (vc2ireg << 24) | (val << 8); |
| 391 | } | 392 | } |
| 392 | 393 | ||
| 393 | extern __inline__ unsigned short newport_vc2_get(struct newport_regs *regs, | 394 | static inline unsigned short newport_vc2_get(struct newport_regs *regs, |
| 394 | unsigned char vc2ireg) | 395 | unsigned char vc2ireg) |
| 395 | { | 396 | { |
| 396 | regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W1 | | 397 | regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W1 | |
