From patchwork Thu Sep 30 19:55:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 4475 Return-path: Envelope-to: mchehab@pedra Delivery-date: Thu, 30 Sep 2010 17:01:35 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1P1PJv-0002tG-5m for mchehab@pedra; Thu, 30 Sep 2010 17:01:35 -0300 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Thu, 30 Sep 2010 17:01:35 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1P1PIg-0000qR-OJ; Thu, 30 Sep 2010 20:00:18 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756575Ab0I3UAL (ORCPT + 1 other); Thu, 30 Sep 2010 16:00:11 -0400 Received: from brigitte.telenet-ops.be ([195.130.137.66]:38794 "EHLO brigitte.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756501Ab0I3UAK (ORCPT ); Thu, 30 Sep 2010 16:00:10 -0400 X-Greylist: delayed 300 seconds by postgrey-1.27 at vger.kernel.org; Thu, 30 Sep 2010 16:00:10 EDT Received: from ayla.of.borg ([94.224.189.190]) by brigitte.telenet-ops.be with bizsmtp id D7v71f00Z46vLmN0G7v7Q2; Thu, 30 Sep 2010 21:55:08 +0200 Received: from geert (helo=localhost) by ayla.of.borg with local-esmtp (Exim 4.71) (envelope-from ) id 1P1PDf-0000dq-Nc; Thu, 30 Sep 2010 21:55:07 +0200 Date: Thu, 30 Sep 2010 21:55:07 +0200 (CEST) From: Geert Uytterhoeven To: Mauro Carvalho Chehab , Jarod Wilson cc: Andrew Morton , Linux Kernel Development , linux-media@vger.kernel.org Subject: [PATCH] lirc: Make struct file_operations pointer const Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: 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 --- include/media/lirc_dev.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/media/lirc_dev.h b/include/media/lirc_dev.h index b1f6066..71a896e 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; };