hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/kernel/rtas-proc.c
....@@ -159,12 +159,12 @@
159159 return single_open(file, ppc_rtas_poweron_show, NULL);
160160 }
161161
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,
168168 };
169169
170170 static int progress_open(struct inode *inode, struct file *file)
....@@ -172,12 +172,12 @@
172172 return single_open(file, ppc_rtas_progress_show, NULL);
173173 }
174174
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,
181181 };
182182
183183 static int clock_open(struct inode *inode, struct file *file)
....@@ -185,12 +185,12 @@
185185 return single_open(file, ppc_rtas_clock_show, NULL);
186186 }
187187
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,
194194 };
195195
196196 static int tone_freq_open(struct inode *inode, struct file *file)
....@@ -198,12 +198,12 @@
198198 return single_open(file, ppc_rtas_tone_freq_show, NULL);
199199 }
200200
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,
207207 };
208208
209209 static int tone_volume_open(struct inode *inode, struct file *file)
....@@ -211,12 +211,12 @@
211211 return single_open(file, ppc_rtas_tone_volume_show, NULL);
212212 }
213213
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,
220220 };
221221
222222 static int ppc_rtas_find_all_sensors(void);
....@@ -238,17 +238,17 @@
238238 return -ENODEV;
239239
240240 proc_create("powerpc/rtas/progress", 0644, NULL,
241
- &ppc_rtas_progress_operations);
241
+ &ppc_rtas_progress_proc_ops);
242242 proc_create("powerpc/rtas/clock", 0644, NULL,
243
- &ppc_rtas_clock_operations);
243
+ &ppc_rtas_clock_proc_ops);
244244 proc_create("powerpc/rtas/poweron", 0644, NULL,
245
- &ppc_rtas_poweron_operations);
245
+ &ppc_rtas_poweron_proc_ops);
246246 proc_create_single("powerpc/rtas/sensors", 0444, NULL,
247247 ppc_rtas_sensors_show);
248248 proc_create("powerpc/rtas/frequency", 0644, NULL,
249
- &ppc_rtas_tone_freq_operations);
249
+ &ppc_rtas_tone_freq_proc_ops);
250250 proc_create("powerpc/rtas/volume", 0644, NULL,
251
- &ppc_rtas_tone_volume_operations);
251
+ &ppc_rtas_tone_volume_proc_ops);
252252 proc_create_single("powerpc/rtas/rmo_buffer", 0400, NULL,
253253 ppc_rtas_rmo_buf_show);
254254 return 0;