diff options
Diffstat (limited to 'sound/isa/gus/gus_mem_proc.c')
-rw-r--r-- | sound/isa/gus/gus_mem_proc.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sound/isa/gus/gus_mem_proc.c b/sound/isa/gus/gus_mem_proc.c index 7f96ac237f3..4080255007d 100644 --- a/sound/isa/gus/gus_mem_proc.c +++ b/sound/isa/gus/gus_mem_proc.c | |||
@@ -25,20 +25,20 @@ | |||
25 | #include <sound/gus.h> | 25 | #include <sound/gus.h> |
26 | #include <sound/info.h> | 26 | #include <sound/info.h> |
27 | 27 | ||
28 | typedef struct gus_proc_private { | 28 | struct gus_proc_private { |
29 | int rom; /* data are in ROM */ | 29 | int rom; /* data are in ROM */ |
30 | unsigned int address; | 30 | unsigned int address; |
31 | unsigned int size; | 31 | unsigned int size; |
32 | snd_gus_card_t * gus; | 32 | struct snd_gus_card * gus; |
33 | } gus_proc_private_t; | 33 | }; |
34 | 34 | ||
35 | static long snd_gf1_mem_proc_dump(snd_info_entry_t *entry, void *file_private_data, | 35 | static long snd_gf1_mem_proc_dump(struct snd_info_entry *entry, void *file_private_data, |
36 | struct file *file, char __user *buf, | 36 | struct file *file, char __user *buf, |
37 | unsigned long count, unsigned long pos) | 37 | unsigned long count, unsigned long pos) |
38 | { | 38 | { |
39 | long size; | 39 | long size; |
40 | gus_proc_private_t *priv = entry->private_data; | 40 | struct gus_proc_private *priv = entry->private_data; |
41 | snd_gus_card_t *gus = priv->gus; | 41 | struct snd_gus_card *gus = priv->gus; |
42 | int err; | 42 | int err; |
43 | 43 | ||
44 | size = count; | 44 | size = count; |
@@ -52,13 +52,13 @@ static long snd_gf1_mem_proc_dump(snd_info_entry_t *entry, void *file_private_da | |||
52 | return 0; | 52 | return 0; |
53 | } | 53 | } |
54 | 54 | ||
55 | static long long snd_gf1_mem_proc_llseek(snd_info_entry_t *entry, | 55 | static long long snd_gf1_mem_proc_llseek(struct snd_info_entry *entry, |
56 | void *private_file_data, | 56 | void *private_file_data, |
57 | struct file *file, | 57 | struct file *file, |
58 | long long offset, | 58 | long long offset, |
59 | int orig) | 59 | int orig) |
60 | { | 60 | { |
61 | gus_proc_private_t *priv = entry->private_data; | 61 | struct gus_proc_private *priv = entry->private_data; |
62 | 62 | ||
63 | switch (orig) { | 63 | switch (orig) { |
64 | case 0: /* SEEK_SET */ | 64 | case 0: /* SEEK_SET */ |
@@ -78,9 +78,9 @@ static long long snd_gf1_mem_proc_llseek(snd_info_entry_t *entry, | |||
78 | return file->f_pos; | 78 | return file->f_pos; |
79 | } | 79 | } |
80 | 80 | ||
81 | static void snd_gf1_mem_proc_free(snd_info_entry_t *entry) | 81 | static void snd_gf1_mem_proc_free(struct snd_info_entry *entry) |
82 | { | 82 | { |
83 | gus_proc_private_t *priv = entry->private_data; | 83 | struct gus_proc_private *priv = entry->private_data; |
84 | kfree(priv); | 84 | kfree(priv); |
85 | } | 85 | } |
86 | 86 | ||
@@ -89,12 +89,12 @@ static struct snd_info_entry_ops snd_gf1_mem_proc_ops = { | |||
89 | .llseek = snd_gf1_mem_proc_llseek, | 89 | .llseek = snd_gf1_mem_proc_llseek, |
90 | }; | 90 | }; |
91 | 91 | ||
92 | int snd_gf1_mem_proc_init(snd_gus_card_t * gus) | 92 | int snd_gf1_mem_proc_init(struct snd_gus_card * gus) |
93 | { | 93 | { |
94 | int idx; | 94 | int idx; |
95 | char name[16]; | 95 | char name[16]; |
96 | gus_proc_private_t *priv; | 96 | struct gus_proc_private *priv; |
97 | snd_info_entry_t *entry; | 97 | struct snd_info_entry *entry; |
98 | 98 | ||
99 | for (idx = 0; idx < 4; idx++) { | 99 | for (idx = 0; idx < 4; idx++) { |
100 | if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { | 100 | if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { |