aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/lirc/lirc_bt829.c2
-rw-r--r--drivers/staging/lirc/lirc_imon.c2
-rw-r--r--drivers/staging/lirc/lirc_it87.c2
-rw-r--r--drivers/staging/lirc/lirc_parallel.c2
-rw-r--r--drivers/staging/lirc/lirc_sasem.c2
-rw-r--r--drivers/staging/lirc/lirc_serial.c2
-rw-r--r--drivers/staging/lirc/lirc_sir.c2
-rw-r--r--drivers/staging/lirc/lirc_streamzap.c2
-rw-r--r--drivers/staging/lirc/lirc_ttusbir.c3
-rw-r--r--drivers/staging/lirc/lirc_zilog.c2
10 files changed, 10 insertions, 11 deletions
diff --git a/drivers/staging/lirc/lirc_bt829.c b/drivers/staging/lirc/lirc_bt829.c
index d0f34b51f5b0..33881025426b 100644
--- a/drivers/staging/lirc/lirc_bt829.c
+++ b/drivers/staging/lirc/lirc_bt829.c
@@ -77,7 +77,7 @@ static struct pci_dev *do_pci_probe(void)
77 pci_addr_phys = 0; 77 pci_addr_phys = 0;
78 if (my_dev->resource[0].flags & IORESOURCE_MEM) { 78 if (my_dev->resource[0].flags & IORESOURCE_MEM) {
79 pci_addr_phys = my_dev->resource[0].start; 79 pci_addr_phys = my_dev->resource[0].start;
80 printk(KERN_INFO DRIVER_NAME ": memory at 0x%08X \n", 80 printk(KERN_INFO DRIVER_NAME ": memory at 0x%08X\n",
81 (unsigned int)pci_addr_phys); 81 (unsigned int)pci_addr_phys);
82 } 82 }
83 if (pci_addr_phys == 0) { 83 if (pci_addr_phys == 0) {
diff --git a/drivers/staging/lirc/lirc_imon.c b/drivers/staging/lirc/lirc_imon.c
index 43856d6818dd..66493253042e 100644
--- a/drivers/staging/lirc/lirc_imon.c
+++ b/drivers/staging/lirc/lirc_imon.c
@@ -111,7 +111,7 @@ struct imon_context {
111 } tx; 111 } tx;
112}; 112};
113 113
114static struct file_operations display_fops = { 114static const struct file_operations display_fops = {
115 .owner = THIS_MODULE, 115 .owner = THIS_MODULE,
116 .open = &display_open, 116 .open = &display_open,
117 .write = &vfd_write, 117 .write = &vfd_write,
diff --git a/drivers/staging/lirc/lirc_it87.c b/drivers/staging/lirc/lirc_it87.c
index 781abc306c27..09f36961c6d2 100644
--- a/drivers/staging/lirc/lirc_it87.c
+++ b/drivers/staging/lirc/lirc_it87.c
@@ -329,7 +329,7 @@ static void add_read_queue(int flag, unsigned long val)
329} 329}
330 330
331 331
332static struct file_operations lirc_fops = { 332static const struct file_operations lirc_fops = {
333 .owner = THIS_MODULE, 333 .owner = THIS_MODULE,
334 .read = lirc_read, 334 .read = lirc_read,
335 .write = lirc_write, 335 .write = lirc_write,
diff --git a/drivers/staging/lirc/lirc_parallel.c b/drivers/staging/lirc/lirc_parallel.c
index df12e7bd3f96..a1ebd071640f 100644
--- a/drivers/staging/lirc/lirc_parallel.c
+++ b/drivers/staging/lirc/lirc_parallel.c
@@ -539,7 +539,7 @@ static int lirc_close(struct inode *node, struct file *filep)
539 return 0; 539 return 0;
540} 540}
541 541
542static struct file_operations lirc_fops = { 542static const struct file_operations lirc_fops = {
543 .owner = THIS_MODULE, 543 .owner = THIS_MODULE,
544 .llseek = lirc_lseek, 544 .llseek = lirc_lseek,
545 .read = lirc_read, 545 .read = lirc_read,
diff --git a/drivers/staging/lirc/lirc_sasem.c b/drivers/staging/lirc/lirc_sasem.c
index 9e516a112c29..73166c3f581f 100644
--- a/drivers/staging/lirc/lirc_sasem.c
+++ b/drivers/staging/lirc/lirc_sasem.c
@@ -119,7 +119,7 @@ struct sasem_context {
119}; 119};
120 120
121/* VFD file operations */ 121/* VFD file operations */
122static struct file_operations vfd_fops = { 122static const struct file_operations vfd_fops = {
123 .owner = THIS_MODULE, 123 .owner = THIS_MODULE,
124 .open = &vfd_open, 124 .open = &vfd_open,
125 .write = &vfd_write, 125 .write = &vfd_write,
diff --git a/drivers/staging/lirc/lirc_serial.c b/drivers/staging/lirc/lirc_serial.c
index d2ea3f0bd71d..9456f8e3f9ef 100644
--- a/drivers/staging/lirc/lirc_serial.c
+++ b/drivers/staging/lirc/lirc_serial.c
@@ -1050,7 +1050,7 @@ static long lirc_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
1050 return 0; 1050 return 0;
1051} 1051}
1052 1052
1053static struct file_operations lirc_fops = { 1053static const struct file_operations lirc_fops = {
1054 .owner = THIS_MODULE, 1054 .owner = THIS_MODULE,
1055 .write = lirc_write, 1055 .write = lirc_write,
1056 .unlocked_ioctl = lirc_ioctl, 1056 .unlocked_ioctl = lirc_ioctl,
diff --git a/drivers/staging/lirc/lirc_sir.c b/drivers/staging/lirc/lirc_sir.c
index 97146d1ee79f..eb08fa7138ba 100644
--- a/drivers/staging/lirc/lirc_sir.c
+++ b/drivers/staging/lirc/lirc_sir.c
@@ -451,7 +451,7 @@ static void add_read_queue(int flag, unsigned long val)
451 wake_up_interruptible(&lirc_read_queue); 451 wake_up_interruptible(&lirc_read_queue);
452} 452}
453 453
454static struct file_operations lirc_fops = { 454static const struct file_operations lirc_fops = {
455 .owner = THIS_MODULE, 455 .owner = THIS_MODULE,
456 .read = lirc_read, 456 .read = lirc_read,
457 .write = lirc_write, 457 .write = lirc_write,
diff --git a/drivers/staging/lirc/lirc_streamzap.c b/drivers/staging/lirc/lirc_streamzap.c
index 5b46ac4dda78..be09c103f0c9 100644
--- a/drivers/staging/lirc/lirc_streamzap.c
+++ b/drivers/staging/lirc/lirc_streamzap.c
@@ -431,7 +431,7 @@ static void usb_streamzap_irq(struct urb *urb)
431 return; 431 return;
432} 432}
433 433
434static struct file_operations streamzap_fops = { 434static const struct file_operations streamzap_fops = {
435 .owner = THIS_MODULE, 435 .owner = THIS_MODULE,
436 .unlocked_ioctl = streamzap_ioctl, 436 .unlocked_ioctl = streamzap_ioctl,
437 .read = lirc_dev_fop_read, 437 .read = lirc_dev_fop_read,
diff --git a/drivers/staging/lirc/lirc_ttusbir.c b/drivers/staging/lirc/lirc_ttusbir.c
index 1f1da471491e..e345ab9a004c 100644
--- a/drivers/staging/lirc/lirc_ttusbir.c
+++ b/drivers/staging/lirc/lirc_ttusbir.c
@@ -141,8 +141,7 @@ static void set_use_dec(void *data)
141 * still have about 14 samples per pulse/space, i.e. we sample with 14 141 * still have about 14 samples per pulse/space, i.e. we sample with 14
142 * times higher frequency than the signal frequency 142 * times higher frequency than the signal frequency
143 */ 143 */
144const unsigned char map_table[] = 144const unsigned char map_table[] = {
145{
146 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 145 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
147 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 146 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
148 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 147 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
diff --git a/drivers/staging/lirc/lirc_zilog.c b/drivers/staging/lirc/lirc_zilog.c
index 1b013bf33899..100caab10451 100644
--- a/drivers/staging/lirc/lirc_zilog.c
+++ b/drivers/staging/lirc/lirc_zilog.c
@@ -1132,7 +1132,7 @@ static struct i2c_driver driver = {
1132 .id_table = ir_transceiver_id, 1132 .id_table = ir_transceiver_id,
1133}; 1133};
1134 1134
1135static struct file_operations lirc_fops = { 1135static const struct file_operations lirc_fops = {
1136 .owner = THIS_MODULE, 1136 .owner = THIS_MODULE,
1137 .llseek = lseek, 1137 .llseek = lseek,
1138 .read = read, 1138 .read = read,