diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-12 03:52:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:29 -0500 |
commit | 8b5925fd5461c9f1ac77ede48945ca1945202ddb (patch) | |
tree | 20bd72cd17d4bf77b6a56d383e4824db1655cc98 /sound/oss/swarm_cs4297a.c | |
parent | b322f4095056d6849c49412eb3e36637a062e9c0 (diff) |
[PATCH] OSS: Use ARRAY_SIZE macro when appropriate (2)
Use ARRAY_SIZE macro already defined in kernel.h
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/oss/swarm_cs4297a.c')
-rw-r--r-- | sound/oss/swarm_cs4297a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/oss/swarm_cs4297a.c b/sound/oss/swarm_cs4297a.c index 471c274c500..9f7e5f59ac8 100644 --- a/sound/oss/swarm_cs4297a.c +++ b/sound/oss/swarm_cs4297a.c | |||
@@ -77,6 +77,7 @@ | |||
77 | #include <linux/poll.h> | 77 | #include <linux/poll.h> |
78 | #include <linux/smp_lock.h> | 78 | #include <linux/smp_lock.h> |
79 | #include <linux/mutex.h> | 79 | #include <linux/mutex.h> |
80 | #include <linux/kernel.h> | ||
80 | 81 | ||
81 | #include <asm/byteorder.h> | 82 | #include <asm/byteorder.h> |
82 | #include <asm/dma.h> | 83 | #include <asm/dma.h> |
@@ -2676,7 +2677,7 @@ static int __init cs4297a_init(void) | |||
2676 | #if 0 | 2677 | #if 0 |
2677 | val = SOUND_MASK_LINE; | 2678 | val = SOUND_MASK_LINE; |
2678 | mixer_ioctl(s, SOUND_MIXER_WRITE_RECSRC, (unsigned long) &val); | 2679 | mixer_ioctl(s, SOUND_MIXER_WRITE_RECSRC, (unsigned long) &val); |
2679 | for (i = 0; i < sizeof(initvol) / sizeof(initvol[0]); i++) { | 2680 | for (i = 0; i < ARRAY_SIZE(initvol); i++) { |
2680 | val = initvol[i].vol; | 2681 | val = initvol[i].vol; |
2681 | mixer_ioctl(s, initvol[i].mixch, (unsigned long) &val); | 2682 | mixer_ioctl(s, initvol[i].mixch, (unsigned long) &val); |
2682 | } | 2683 | } |