From: Geert Uytterhoeven Date: Thu, 30 Sep 2010 19:55:07 +0000 (-0300) Subject: [media] lirc: Make struct file_operations pointer const X-Git-Tag: MMI-PSA29.97-13-9~21911^2~308 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22c00854f3db563427527a8f71c20bd3943b13e0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] lirc: Make struct file_operations pointer const 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 Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab --- diff --git a/include/media/lirc_dev.h b/include/media/lirc_dev.h index b1f60663cb39..71a896e7b208 100644 --- a/include/media/lirc_dev.h +++ b/include/media/lirc_dev.h @@ -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; };