From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757246Ab0JHKOy (ORCPT ); Fri, 8 Oct 2010 06:14:54 -0400 Received: from mail-gx0-f174.google.com ([209.85.161.174]:46289 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757193Ab0JHKOw (ORCPT ); Fri, 8 Oct 2010 06:14:52 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=JJqlnXKvXOMXsBkokcDZiFS8d/ijujXxha1lo3UScjzFyEX5tzGBkpYPp8GDRBZyDF X3pxtTan0Z3hT3T/bcuDDt7500xLvJIFpIUbDQWoyobbeXcREuLPl0srLfCh5U1tqSa8 uZ9GMmMFmuFGtZjqtA5boPSqhtF9yByIWNwNM= From: Tracey Dent To: greg@kroah.com Cc: linux-kernel@vger.kernel.org, Tracey Dent Subject: [PATCH 2/3] Staging: speakup: devsynth: file_operations should be const Date: Fri, 8 Oct 2010 06:14:44 -0400 Message-Id: <1286532885-5411-2-git-send-email-tdent48227@gmail.com> X-Mailer: git-send-email 1.7.3.1.104.gc752e In-Reply-To: <1286532885-5411-1-git-send-email-tdent48227@gmail.com> References: <1286532885-5411-1-git-send-email-tdent48227@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixed file_operation struct, so that it is const. Signed-off-by: Tracey Dent --- drivers/staging/speakup/devsynth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/speakup/devsynth.c b/drivers/staging/speakup/devsynth.c index a465653..8b74622 100644 --- a/drivers/staging/speakup/devsynth.c +++ b/drivers/staging/speakup/devsynth.c @@ -56,7 +56,7 @@ static int speakup_file_release(struct inode *ip, struct file *fp) return 0; } -static struct file_operations synth_fops = { +static const struct file_operations synth_fops = { .read = speakup_file_read, .write = speakup_file_write, .open = speakup_file_open, -- 1.7.3.1.104.gc752e