aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/spufs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/file.c')
-rw-r--r--arch/powerpc/platforms/cell/spufs/file.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
index 347eff56fcb..af9e9455a70 100644
--- a/arch/powerpc/platforms/cell/spufs/file.c
+++ b/arch/powerpc/platforms/cell/spufs/file.c
@@ -144,7 +144,7 @@ spufs_mem_mmap(struct file *file, struct vm_area_struct *vma)
144 return 0; 144 return 0;
145} 145}
146 146
147static struct file_operations spufs_mem_fops = { 147static const struct file_operations spufs_mem_fops = {
148 .open = spufs_mem_open, 148 .open = spufs_mem_open,
149 .read = spufs_mem_read, 149 .read = spufs_mem_read,
150 .write = spufs_mem_write, 150 .write = spufs_mem_write,
@@ -249,7 +249,7 @@ static int spufs_cntl_open(struct inode *inode, struct file *file)
249 spufs_cntl_set, "0x%08lx"); 249 spufs_cntl_set, "0x%08lx");
250} 250}
251 251
252static struct file_operations spufs_cntl_fops = { 252static const struct file_operations spufs_cntl_fops = {
253 .open = spufs_cntl_open, 253 .open = spufs_cntl_open,
254 .release = simple_attr_close, 254 .release = simple_attr_close,
255 .read = simple_attr_read, 255 .read = simple_attr_read,
@@ -309,7 +309,7 @@ spufs_regs_write(struct file *file, const char __user *buffer,
309 return ret; 309 return ret;
310} 310}
311 311
312static struct file_operations spufs_regs_fops = { 312static const struct file_operations spufs_regs_fops = {
313 .open = spufs_regs_open, 313 .open = spufs_regs_open,
314 .read = spufs_regs_read, 314 .read = spufs_regs_read,
315 .write = spufs_regs_write, 315 .write = spufs_regs_write,
@@ -360,7 +360,7 @@ spufs_fpcr_write(struct file *file, const char __user * buffer,
360 return ret; 360 return ret;
361} 361}
362 362
363static struct file_operations spufs_fpcr_fops = { 363static const struct file_operations spufs_fpcr_fops = {
364 .open = spufs_regs_open, 364 .open = spufs_regs_open,
365 .read = spufs_fpcr_read, 365 .read = spufs_fpcr_read,
366 .write = spufs_fpcr_write, 366 .write = spufs_fpcr_write,
@@ -426,7 +426,7 @@ static ssize_t spufs_mbox_read(struct file *file, char __user *buf,
426 return count; 426 return count;
427} 427}
428 428
429static struct file_operations spufs_mbox_fops = { 429static const struct file_operations spufs_mbox_fops = {
430 .open = spufs_pipe_open, 430 .open = spufs_pipe_open,
431 .read = spufs_mbox_read, 431 .read = spufs_mbox_read,
432}; 432};
@@ -452,7 +452,7 @@ static ssize_t spufs_mbox_stat_read(struct file *file, char __user *buf,
452 return 4; 452 return 4;
453} 453}
454 454
455static struct file_operations spufs_mbox_stat_fops = { 455static const struct file_operations spufs_mbox_stat_fops = {
456 .open = spufs_pipe_open, 456 .open = spufs_pipe_open,
457 .read = spufs_mbox_stat_read, 457 .read = spufs_mbox_stat_read,
458}; 458};
@@ -559,7 +559,7 @@ static unsigned int spufs_ibox_poll(struct file *file, poll_table *wait)
559 return mask; 559 return mask;
560} 560}
561 561
562static struct file_operations spufs_ibox_fops = { 562static const struct file_operations spufs_ibox_fops = {
563 .open = spufs_pipe_open, 563 .open = spufs_pipe_open,
564 .read = spufs_ibox_read, 564 .read = spufs_ibox_read,
565 .poll = spufs_ibox_poll, 565 .poll = spufs_ibox_poll,
@@ -585,7 +585,7 @@ static ssize_t spufs_ibox_stat_read(struct file *file, char __user *buf,
585 return 4; 585 return 4;
586} 586}
587 587
588static struct file_operations spufs_ibox_stat_fops = { 588static const struct file_operations spufs_ibox_stat_fops = {
589 .open = spufs_pipe_open, 589 .open = spufs_pipe_open,
590 .read = spufs_ibox_stat_read, 590 .read = spufs_ibox_stat_read,
591}; 591};
@@ -692,7 +692,7 @@ static unsigned int spufs_wbox_poll(struct file *file, poll_table *wait)
692 return mask; 692 return mask;
693} 693}
694 694
695static struct file_operations spufs_wbox_fops = { 695static const struct file_operations spufs_wbox_fops = {
696 .open = spufs_pipe_open, 696 .open = spufs_pipe_open,
697 .write = spufs_wbox_write, 697 .write = spufs_wbox_write,
698 .poll = spufs_wbox_poll, 698 .poll = spufs_wbox_poll,
@@ -718,7 +718,7 @@ static ssize_t spufs_wbox_stat_read(struct file *file, char __user *buf,
718 return 4; 718 return 4;
719} 719}
720 720
721static struct file_operations spufs_wbox_stat_fops = { 721static const struct file_operations spufs_wbox_stat_fops = {
722 .open = spufs_pipe_open, 722 .open = spufs_pipe_open,
723 .read = spufs_wbox_stat_read, 723 .read = spufs_wbox_stat_read,
724}; 724};
@@ -823,7 +823,7 @@ static int spufs_signal1_mmap(struct file *file, struct vm_area_struct *vma)
823 return 0; 823 return 0;
824} 824}
825 825
826static struct file_operations spufs_signal1_fops = { 826static const struct file_operations spufs_signal1_fops = {
827 .open = spufs_signal1_open, 827 .open = spufs_signal1_open,
828 .read = spufs_signal1_read, 828 .read = spufs_signal1_read,
829 .write = spufs_signal1_write, 829 .write = spufs_signal1_write,
@@ -934,7 +934,7 @@ static int spufs_signal2_mmap(struct file *file, struct vm_area_struct *vma)
934#define spufs_signal2_mmap NULL 934#define spufs_signal2_mmap NULL
935#endif /* !SPUFS_MMAP_4K */ 935#endif /* !SPUFS_MMAP_4K */
936 936
937static struct file_operations spufs_signal2_fops = { 937static const struct file_operations spufs_signal2_fops = {
938 .open = spufs_signal2_open, 938 .open = spufs_signal2_open,
939 .read = spufs_signal2_read, 939 .read = spufs_signal2_read,
940 .write = spufs_signal2_write, 940 .write = spufs_signal2_write,
@@ -1037,7 +1037,7 @@ static int spufs_mss_open(struct inode *inode, struct file *file)
1037 return nonseekable_open(inode, file); 1037 return nonseekable_open(inode, file);
1038} 1038}
1039 1039
1040static struct file_operations spufs_mss_fops = { 1040static const struct file_operations spufs_mss_fops = {
1041 .open = spufs_mss_open, 1041 .open = spufs_mss_open,
1042 .mmap = spufs_mss_mmap, 1042 .mmap = spufs_mss_mmap,
1043}; 1043};
@@ -1076,7 +1076,7 @@ static int spufs_psmap_open(struct inode *inode, struct file *file)
1076 return nonseekable_open(inode, file); 1076 return nonseekable_open(inode, file);
1077} 1077}
1078 1078
1079static struct file_operations spufs_psmap_fops = { 1079static const struct file_operations spufs_psmap_fops = {
1080 .open = spufs_psmap_open, 1080 .open = spufs_psmap_open,
1081 .mmap = spufs_psmap_mmap, 1081 .mmap = spufs_psmap_mmap,
1082}; 1082};
@@ -1393,7 +1393,7 @@ static int spufs_mfc_fasync(int fd, struct file *file, int on)
1393 return fasync_helper(fd, file, on, &ctx->mfc_fasync); 1393 return fasync_helper(fd, file, on, &ctx->mfc_fasync);
1394} 1394}
1395 1395
1396static struct file_operations spufs_mfc_fops = { 1396static const struct file_operations spufs_mfc_fops = {
1397 .open = spufs_mfc_open, 1397 .open = spufs_mfc_open,
1398 .read = spufs_mfc_read, 1398 .read = spufs_mfc_read,
1399 .write = spufs_mfc_write, 1399 .write = spufs_mfc_write,
@@ -1650,7 +1650,7 @@ static ssize_t spufs_mbox_info_read(struct file *file, char __user *buf,
1650 return ret; 1650 return ret;
1651} 1651}
1652 1652
1653static struct file_operations spufs_mbox_info_fops = { 1653static const struct file_operations spufs_mbox_info_fops = {
1654 .open = spufs_info_open, 1654 .open = spufs_info_open,
1655 .read = spufs_mbox_info_read, 1655 .read = spufs_mbox_info_read,
1656 .llseek = generic_file_llseek, 1656 .llseek = generic_file_llseek,
@@ -1688,7 +1688,7 @@ static ssize_t spufs_ibox_info_read(struct file *file, char __user *buf,
1688 return ret; 1688 return ret;
1689} 1689}
1690 1690
1691static struct file_operations spufs_ibox_info_fops = { 1691static const struct file_operations spufs_ibox_info_fops = {
1692 .open = spufs_info_open, 1692 .open = spufs_info_open,
1693 .read = spufs_ibox_info_read, 1693 .read = spufs_ibox_info_read,
1694 .llseek = generic_file_llseek, 1694 .llseek = generic_file_llseek,
@@ -1729,7 +1729,7 @@ static ssize_t spufs_wbox_info_read(struct file *file, char __user *buf,
1729 return ret; 1729 return ret;
1730} 1730}
1731 1731
1732static struct file_operations spufs_wbox_info_fops = { 1732static const struct file_operations spufs_wbox_info_fops = {
1733 .open = spufs_info_open, 1733 .open = spufs_info_open,
1734 .read = spufs_wbox_info_read, 1734 .read = spufs_wbox_info_read,
1735 .llseek = generic_file_llseek, 1735 .llseek = generic_file_llseek,
@@ -1779,7 +1779,7 @@ static ssize_t spufs_dma_info_read(struct file *file, char __user *buf,
1779 return ret; 1779 return ret;
1780} 1780}
1781 1781
1782static struct file_operations spufs_dma_info_fops = { 1782static const struct file_operations spufs_dma_info_fops = {
1783 .open = spufs_info_open, 1783 .open = spufs_info_open,
1784 .read = spufs_dma_info_read, 1784 .read = spufs_dma_info_read,
1785}; 1785};
@@ -1830,7 +1830,7 @@ static ssize_t spufs_proxydma_info_read(struct file *file, char __user *buf,
1830 return ret; 1830 return ret;
1831} 1831}
1832 1832
1833static struct file_operations spufs_proxydma_info_fops = { 1833static const struct file_operations spufs_proxydma_info_fops = {
1834 .open = spufs_info_open, 1834 .open = spufs_info_open,
1835 .read = spufs_proxydma_info_read, 1835 .read = spufs_proxydma_info_read,
1836}; 1836};