[media] lirc: Make struct file_operations pointer const
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 30 Sep 2010 19:55:07 +0000 (16:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:16:59 +0000 (01:16 -0200)
struct file_operations was made const in the drivers, but not in struct
lirc_driver:

drivers/staging/lirc/lirc_it87.c:365: warning: initialization discards qualifiers from pointer target type
drivers/staging/lirc/lirc_parallel.c:571: warning: initialization discards qualifiers from pointer target type
drivers/staging/lirc/lirc_serial.c:1073: warning: initialization discards qualifiers from pointer target type
drivers/staging/lirc/lirc_sir.c:482: warning: initialization discards qualifiers from pointer target type
drivers/staging/lirc/lirc_zilog.c:1284: warning: assignment discards qualifiers from pointer target type

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/media/lirc_dev.h

index b1f60663cb3938ce2267fc86e84be22b895176fd..71a896e7b208b75e588c45c9b9adc402cca5e942 100644 (file)
@@ -139,7 +139,7 @@ struct lirc_driver {
        struct lirc_buffer *rbuf;
        int (*set_use_inc) (void *data);
        void (*set_use_dec) (void *data);
-       struct file_operations *fops;
+       const struct file_operations *fops;
        struct device *dev;
        struct module *owner;
 };