From patchwork Wed Jun 17 11:24:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6624141 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E755C9F326 for ; Wed, 17 Jun 2015 11:25:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 19AA6208DF for ; Wed, 17 Jun 2015 11:25:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3FE1A208D5 for ; Wed, 17 Jun 2015 11:25:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754990AbbFQLZh (ORCPT ); Wed, 17 Jun 2015 07:25:37 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:34762 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753140AbbFQLZY (ORCPT ); Wed, 17 Jun 2015 07:25:24 -0400 Received: by pacgb13 with SMTP id gb13so33989206pac.1; Wed, 17 Jun 2015 04:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z+h6MIinTn/TIIag1ktx9PslzCp/T07QEw5McRuFCVU=; b=Y9hjz7d9nzQ2ikCASbFAL+/nlJryH2TKDz3RxS98gwkAXG0ANaHCag/zalAcut2Ubg 88eYqepz3/m5wJElX5sQHiEtdidfxDvVsa1KvqXuVt8RON00F/9GaANV4lplaWgGJd+a WTdEUGTFG5gFB0dcxUCFK5erO8Iz00Qy78TCzch1fKLquzpY7adHIgh4Uc/VK1Z0QQ+Q +xCCSGUPxMTaQ3HTjPZDZtT8CbeAGwugDDrPAdf00Q7rOqDYDmrkk7hKQl7xhU1nDiFD TheWcC36+TAno/5smi275aUN/flcTJLbUJmHnIw6jvRjLBolvNPUWWDdDYxR9AekS4Mq kqHg== X-Received: by 10.68.103.164 with SMTP id fx4mr9859156pbb.125.1434540323421; Wed, 17 Jun 2015 04:25:23 -0700 (PDT) Received: from localhost.localdomain ([122.169.132.132]) by mx.google.com with ESMTPSA id zx1sm4367679pbb.73.2015.06.17.04.25.20 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Jun 2015 04:25:22 -0700 (PDT) From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Joe Perches , Sudip Mukherjee Subject: [PATCH v2 1/9] staging: sm7xxfb: declare struct as const Date: Wed, 17 Jun 2015 16:54:40 +0530 Message-Id: <1434540288-8289-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1434540288-8289-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1434540288-8289-1-git-send-email-sudipm.mukherjee@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB, RP_MATCHES_RCVD, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The vesa_mode_table is not to be modified, so declare it as const. Signed-off-by: Sudip Mukherjee --- drivers/staging/sm7xxfb/sm7xxfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 5db26f1..4d9b69d 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -94,7 +94,7 @@ struct vesa_mode { u16 lfb_depth; }; -static struct vesa_mode vesa_mode_table[] = { +static const struct vesa_mode vesa_mode_table[] = { {"0x301", 640, 480, 8}, {"0x303", 800, 600, 8}, {"0x305", 1024, 768, 8},