| .. | .. |
|---|
| 159 | 159 | return single_open(file, ppc_rtas_poweron_show, NULL); |
|---|
| 160 | 160 | } |
|---|
| 161 | 161 | |
|---|
| 162 | | -static const struct file_operations ppc_rtas_poweron_operations = { |
|---|
| 163 | | - .open = poweron_open, |
|---|
| 164 | | - .read = seq_read, |
|---|
| 165 | | - .llseek = seq_lseek, |
|---|
| 166 | | - .write = ppc_rtas_poweron_write, |
|---|
| 167 | | - .release = single_release, |
|---|
| 162 | +static const struct proc_ops ppc_rtas_poweron_proc_ops = { |
|---|
| 163 | + .proc_open = poweron_open, |
|---|
| 164 | + .proc_read = seq_read, |
|---|
| 165 | + .proc_lseek = seq_lseek, |
|---|
| 166 | + .proc_write = ppc_rtas_poweron_write, |
|---|
| 167 | + .proc_release = single_release, |
|---|
| 168 | 168 | }; |
|---|
| 169 | 169 | |
|---|
| 170 | 170 | static int progress_open(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 172 | 172 | return single_open(file, ppc_rtas_progress_show, NULL); |
|---|
| 173 | 173 | } |
|---|
| 174 | 174 | |
|---|
| 175 | | -static const struct file_operations ppc_rtas_progress_operations = { |
|---|
| 176 | | - .open = progress_open, |
|---|
| 177 | | - .read = seq_read, |
|---|
| 178 | | - .llseek = seq_lseek, |
|---|
| 179 | | - .write = ppc_rtas_progress_write, |
|---|
| 180 | | - .release = single_release, |
|---|
| 175 | +static const struct proc_ops ppc_rtas_progress_proc_ops = { |
|---|
| 176 | + .proc_open = progress_open, |
|---|
| 177 | + .proc_read = seq_read, |
|---|
| 178 | + .proc_lseek = seq_lseek, |
|---|
| 179 | + .proc_write = ppc_rtas_progress_write, |
|---|
| 180 | + .proc_release = single_release, |
|---|
| 181 | 181 | }; |
|---|
| 182 | 182 | |
|---|
| 183 | 183 | static int clock_open(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 185 | 185 | return single_open(file, ppc_rtas_clock_show, NULL); |
|---|
| 186 | 186 | } |
|---|
| 187 | 187 | |
|---|
| 188 | | -static const struct file_operations ppc_rtas_clock_operations = { |
|---|
| 189 | | - .open = clock_open, |
|---|
| 190 | | - .read = seq_read, |
|---|
| 191 | | - .llseek = seq_lseek, |
|---|
| 192 | | - .write = ppc_rtas_clock_write, |
|---|
| 193 | | - .release = single_release, |
|---|
| 188 | +static const struct proc_ops ppc_rtas_clock_proc_ops = { |
|---|
| 189 | + .proc_open = clock_open, |
|---|
| 190 | + .proc_read = seq_read, |
|---|
| 191 | + .proc_lseek = seq_lseek, |
|---|
| 192 | + .proc_write = ppc_rtas_clock_write, |
|---|
| 193 | + .proc_release = single_release, |
|---|
| 194 | 194 | }; |
|---|
| 195 | 195 | |
|---|
| 196 | 196 | static int tone_freq_open(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 198 | 198 | return single_open(file, ppc_rtas_tone_freq_show, NULL); |
|---|
| 199 | 199 | } |
|---|
| 200 | 200 | |
|---|
| 201 | | -static const struct file_operations ppc_rtas_tone_freq_operations = { |
|---|
| 202 | | - .open = tone_freq_open, |
|---|
| 203 | | - .read = seq_read, |
|---|
| 204 | | - .llseek = seq_lseek, |
|---|
| 205 | | - .write = ppc_rtas_tone_freq_write, |
|---|
| 206 | | - .release = single_release, |
|---|
| 201 | +static const struct proc_ops ppc_rtas_tone_freq_proc_ops = { |
|---|
| 202 | + .proc_open = tone_freq_open, |
|---|
| 203 | + .proc_read = seq_read, |
|---|
| 204 | + .proc_lseek = seq_lseek, |
|---|
| 205 | + .proc_write = ppc_rtas_tone_freq_write, |
|---|
| 206 | + .proc_release = single_release, |
|---|
| 207 | 207 | }; |
|---|
| 208 | 208 | |
|---|
| 209 | 209 | static int tone_volume_open(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 211 | 211 | return single_open(file, ppc_rtas_tone_volume_show, NULL); |
|---|
| 212 | 212 | } |
|---|
| 213 | 213 | |
|---|
| 214 | | -static const struct file_operations ppc_rtas_tone_volume_operations = { |
|---|
| 215 | | - .open = tone_volume_open, |
|---|
| 216 | | - .read = seq_read, |
|---|
| 217 | | - .llseek = seq_lseek, |
|---|
| 218 | | - .write = ppc_rtas_tone_volume_write, |
|---|
| 219 | | - .release = single_release, |
|---|
| 214 | +static const struct proc_ops ppc_rtas_tone_volume_proc_ops = { |
|---|
| 215 | + .proc_open = tone_volume_open, |
|---|
| 216 | + .proc_read = seq_read, |
|---|
| 217 | + .proc_lseek = seq_lseek, |
|---|
| 218 | + .proc_write = ppc_rtas_tone_volume_write, |
|---|
| 219 | + .proc_release = single_release, |
|---|
| 220 | 220 | }; |
|---|
| 221 | 221 | |
|---|
| 222 | 222 | static int ppc_rtas_find_all_sensors(void); |
|---|
| .. | .. |
|---|
| 238 | 238 | return -ENODEV; |
|---|
| 239 | 239 | |
|---|
| 240 | 240 | proc_create("powerpc/rtas/progress", 0644, NULL, |
|---|
| 241 | | - &ppc_rtas_progress_operations); |
|---|
| 241 | + &ppc_rtas_progress_proc_ops); |
|---|
| 242 | 242 | proc_create("powerpc/rtas/clock", 0644, NULL, |
|---|
| 243 | | - &ppc_rtas_clock_operations); |
|---|
| 243 | + &ppc_rtas_clock_proc_ops); |
|---|
| 244 | 244 | proc_create("powerpc/rtas/poweron", 0644, NULL, |
|---|
| 245 | | - &ppc_rtas_poweron_operations); |
|---|
| 245 | + &ppc_rtas_poweron_proc_ops); |
|---|
| 246 | 246 | proc_create_single("powerpc/rtas/sensors", 0444, NULL, |
|---|
| 247 | 247 | ppc_rtas_sensors_show); |
|---|
| 248 | 248 | proc_create("powerpc/rtas/frequency", 0644, NULL, |
|---|
| 249 | | - &ppc_rtas_tone_freq_operations); |
|---|
| 249 | + &ppc_rtas_tone_freq_proc_ops); |
|---|
| 250 | 250 | proc_create("powerpc/rtas/volume", 0644, NULL, |
|---|
| 251 | | - &ppc_rtas_tone_volume_operations); |
|---|
| 251 | + &ppc_rtas_tone_volume_proc_ops); |
|---|
| 252 | 252 | proc_create_single("powerpc/rtas/rmo_buffer", 0400, NULL, |
|---|
| 253 | 253 | ppc_rtas_rmo_buf_show); |
|---|
| 254 | 254 | return 0; |
|---|