From patchwork Tue Jun 16 13:42:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6618151 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CFF5BC0020 for ; Tue, 16 Jun 2015 13:44:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F1F2220643 for ; Tue, 16 Jun 2015 13:44:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 20C8E20641 for ; Tue, 16 Jun 2015 13:44:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754666AbbFPNm2 (ORCPT ); Tue, 16 Jun 2015 09:42:28 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:34291 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752860AbbFPNm1 (ORCPT ); Tue, 16 Jun 2015 09:42:27 -0400 Received: by pdbki1 with SMTP id ki1so14795769pdb.1; Tue, 16 Jun 2015 06:42:27 -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; bh=z+h6MIinTn/TIIag1ktx9PslzCp/T07QEw5McRuFCVU=; b=lHuKtoq/TJGME4F74NEx7FxDYjsW60YMiENk1I5A8+URam1hFOfQQqD9RUbGWCYWdT MbfN6cA8q6KsdkNJFMdNPUHv4wSUnQZHDIl0cPgaXHnhuMOMz3NrhBYpn08E1pUFOLro r7jxXPs35/gB+KnRKbQ8mfPfvvaD4TY59G3HFpqU/h3GX2KLswPvTUU2s5egdWaQejKy 6f7r9EHWXd1rI/FZy92RAHZ27Yby93TX0ZSYQ0MCR6aYcDMjHr2dJGaFFNcydZ9N9nBT TbPCvfv4AXJx0THzBO2wxf6CcIrGGUVO6cpnVxoIO4MBzKmdIOe1U52ly3XDFLfEuUMt n1MQ== X-Received: by 10.68.219.101 with SMTP id pn5mr726032pbc.77.1434462147291; Tue, 16 Jun 2015 06:42:27 -0700 (PDT) Received: from localhost.localdomain ([122.169.132.132]) by mx.google.com with ESMTPSA id w4sm1521423pdl.7.2015.06.16.06.42.24 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Jun 2015 06:42:26 -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 1/8] staging: sm7xxfb: declare struct as const Date: Tue, 16 Jun 2015 19:12:04 +0530 Message-Id: <1434462131-15191-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 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.7 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},