diff options
| author | Michael Hunold <hunold@convergence.de> | 2003-06-22 22:48:52 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-22 22:48:52 -0700 |
| commit | cfa89a3ef6f0e1afbf30fed31ee3b2876d004727 (patch) | |
| tree | 050705b0c8f371fcafe9dea2c421b6f5c930a596 /include/media | |
| parent | ea40a8d8ff12004f27bcdeb8c36ed49dd5209f29 (diff) | |
[PATCH] clean up the parts according to the comments on kernel mailing list
clean up the parts according to the comments on kernel mailing list
(mainly by Christoph Hellwig)
- ugly WRITE_RPS0 define in saa7146_hlp.c has been replaced by a proper
inline (I hope)
- use <linux/types.h> not <asm/types.h> everywhere
- include <asm/*.h> headers after <linux/*.h> ones
- revert the indentation from "static <newline> xxx to "static xxx"
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/saa7146_vv.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/media/saa7146_vv.h b/include/media/saa7146_vv.h index 3534ac56cbe5..d62e183977c8 100644 --- a/include/media/saa7146_vv.h +++ b/include/media/saa7146_vv.h @@ -9,6 +9,16 @@ #define MAX_SAA7146_CAPTURE_BUFFERS 32 /* arbitrary */ #define BUFFER_TIMEOUT (HZ/2) /* 0.5 seconds */ +#define WRITE_RPS0(x) do { \ + static int count = 0; \ + dev->d_rps0.cpu_addr[ count++ ] = cpu_to_le32(x); \ + } while (0); + +#define WRITE_RPS1(x) do { \ + static int count = 0; \ + dev->d_rps1.cpu_addr[ count++ ] = cpu_to_le32(x); \ + } while (0); + struct saa7146_video_dma { u32 base_odd; u32 base_even; |
