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: 221152 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8UK0JDg006021 for ; Thu, 30 Sep 2010 20:00:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756575Ab0I3UAL (ORCPT ); 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: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 30 Sep 2010 20:00:19 +0000 (UTC) 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 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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; };