V4L/DVB: staging/lirc: CodingStyle cleanups
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 27 Jul 2010 21:44:45 +0000 (18:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 19:43:35 +0000 (16:43 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/lirc/lirc_bt829.c
drivers/staging/lirc/lirc_imon.c
drivers/staging/lirc/lirc_it87.c
drivers/staging/lirc/lirc_parallel.c
drivers/staging/lirc/lirc_sasem.c
drivers/staging/lirc/lirc_serial.c
drivers/staging/lirc/lirc_sir.c
drivers/staging/lirc/lirc_streamzap.c
drivers/staging/lirc/lirc_ttusbir.c
drivers/staging/lirc/lirc_zilog.c

index d0f34b51f5b0eb92300821db75a1247b27e626ca..33881025426b638afefc78a880ac3716ea384bad 100644 (file)
@@ -77,7 +77,7 @@ static struct pci_dev *do_pci_probe(void)
                pci_addr_phys = 0;
                if (my_dev->resource[0].flags & IORESOURCE_MEM) {
                        pci_addr_phys = my_dev->resource[0].start;
-                       printk(KERN_INFO DRIVER_NAME ": memory at 0x%08X \n",
+                       printk(KERN_INFO DRIVER_NAME ": memory at 0x%08X\n",
                               (unsigned int)pci_addr_phys);
                }
                if (pci_addr_phys == 0) {
index 43856d6818dd692bdfb7afa966cab3dbeaf10920..66493253042e8ccedfa7be8e21c317f8845c7093 100644 (file)
@@ -111,7 +111,7 @@ struct imon_context {
        } tx;
 };
 
-static struct file_operations display_fops = {
+static const struct file_operations display_fops = {
        .owner          = THIS_MODULE,
        .open           = &display_open,
        .write          = &vfd_write,
index 781abc306c2796c405bef288eadc942ccc115ad3..09f36961c6d29279f24aa350112df15c6e3678cc 100644 (file)
@@ -329,7 +329,7 @@ static void add_read_queue(int flag, unsigned long val)
 }
 
 
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
        .owner          = THIS_MODULE,
        .read           = lirc_read,
        .write          = lirc_write,
index df12e7bd3f96162346fb003417588b8b6474ccd2..a1ebd071640f7fe3393d7dda28b6c6ea421d1730 100644 (file)
@@ -539,7 +539,7 @@ static int lirc_close(struct inode *node, struct file *filep)
        return 0;
 }
 
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
        .owner          = THIS_MODULE,
        .llseek         = lirc_lseek,
        .read           = lirc_read,
index 9e516a112c29b190da0581b8f186cfd59fac9146..73166c3f581fd3ed8b7ef805fd27613212817c43 100644 (file)
@@ -119,7 +119,7 @@ struct sasem_context {
 };
 
 /* VFD file operations */
-static struct file_operations vfd_fops = {
+static const struct file_operations vfd_fops = {
        .owner          = THIS_MODULE,
        .open           = &vfd_open,
        .write          = &vfd_write,
index d2ea3f0bd71d0eff58c8dfd480046eaf6cb6cd00..9456f8e3f9ef37f75b71a1146ea2e1199c851fd0 100644 (file)
@@ -1050,7 +1050,7 @@ static long lirc_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
        return 0;
 }
 
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
        .owner          = THIS_MODULE,
        .write          = lirc_write,
        .unlocked_ioctl = lirc_ioctl,
index 97146d1ee79f4e4821f278b6c55378415529b504..eb08fa7138bab4418ba5a4ae8d40022c6eb5e406 100644 (file)
@@ -451,7 +451,7 @@ static void add_read_queue(int flag, unsigned long val)
        wake_up_interruptible(&lirc_read_queue);
 }
 
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
        .owner          = THIS_MODULE,
        .read           = lirc_read,
        .write          = lirc_write,
index 5b46ac4dda7836c2a7aad7d5881e32d77a206634..be09c103f0c935bbd67d00b77b1bc465820e9f47 100644 (file)
@@ -431,7 +431,7 @@ static void usb_streamzap_irq(struct urb *urb)
        return;
 }
 
-static struct file_operations streamzap_fops = {
+static const struct file_operations streamzap_fops = {
        .owner          = THIS_MODULE,
        .unlocked_ioctl = streamzap_ioctl,
        .read           = lirc_dev_fop_read,
index 1f1da471491e15811361d897c2b88d8b450808e9..e345ab9a004caee410fa53636006f6d06ceef7d5 100644 (file)
@@ -141,8 +141,7 @@ static void set_use_dec(void *data)
  * still have about 14 samples per pulse/space, i.e. we sample with 14
  * times higher frequency than the signal frequency
  */
-const unsigned char map_table[] =
-{
+const unsigned char map_table[] = {
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
index 1b013bf3389927db03696e2fad21479c0252acc9..100caab104518430da1b402cff9b1bf16433e192 100644 (file)
@@ -1132,7 +1132,7 @@ static struct i2c_driver driver = {
        .id_table       = ir_transceiver_id,
 };
 
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
        .owner          = THIS_MODULE,
        .llseek         = lseek,
        .read           = read,