From patchwork Tue Aug 22 18:17:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9915885 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6828260381 for ; Tue, 22 Aug 2017 18:18:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 534661FF2D for ; Tue, 22 Aug 2017 18:18:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 479F02818E; Tue, 22 Aug 2017 18:18:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E89651FF2D for ; Tue, 22 Aug 2017 18:18:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751854AbdHVSSE (ORCPT ); Tue, 22 Aug 2017 14:18:04 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34352 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835AbdHVSSE (ORCPT ); Tue, 22 Aug 2017 14:18:04 -0400 Received: by mail-pf0-f194.google.com with SMTP id w127so2401072pfd.1; Tue, 22 Aug 2017 11:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=o9L9QbR/nM9D7lAaKBysZ1nir9Jd3SEMKDVfHEtrArc=; b=WWLQ+NlFwymBoyOgZu+FipKJGw23NzKvJhtLxq2YLyp2lDeMamBc+EWmn9qF0ourAY 9ynimA0DN/7vLvrH/Fb+9svIBRzLJg1im5GtjHJroYVSFrePJoEQ+K2OAa6wO1Ro9CqD zmzqqa1nd8gyy84xkts1D5x7lnez89gk7rFvXaQHirllrHztdxTt/nofcWzh0Cw0abXd QdHWYQJ0YC6VyouJQUuNQOWlU3sJ8MxklXNQ014b3bc0tIz2w8TGVbKyALbQRfRflz93 iCVS19iKiEJXMlGtKkF0fa4VrXY8dWucx0eztEM/OgkLPqH5t95TH+6E/Rwftl786NuK mIqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o9L9QbR/nM9D7lAaKBysZ1nir9Jd3SEMKDVfHEtrArc=; b=dMrsLbJiEHrgIp9Lj5mDAcoPH5QfkmMV5eKQTJZaZr4uFE7h70ymxSRAhEJzZ6CBa3 kpvRlUT5vT5O9W83Dqp3DZe3QtAubazVFqjJc4/KQTlewopZI4q3ssJO9GjkirSYQSfR /Ye5/Pa5DMwD/g1iD02Fw8bmnBj8Qj1Mqwuc4/0VJOCFVraxLvIDwsC/9JAfNRm9ztYG T2rSx6P6gnlxHqWXHK6S/rcLLavn9/BJ8YA4jejXVuZ5ffNkpZMWddWnRIoEPkqLhOUz PY56W0vu7dvCOsC7cESZTxMAk2KwXv/pLZqeojmd081rnT/IlswWwsJyTZIqopMSq5fX Lu9g== X-Gm-Message-State: AHYfb5hhLWWCZzl7bCVdqpd1+35SMlW080IP7uBR8NkQVK+xbXFgzFC/ ZnA1gUIOAUOrvg8T X-Received: by 10.99.2.86 with SMTP id 83mr40278pgc.264.1503425883524; Tue, 22 Aug 2017 11:18:03 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.79]) by smtp.gmail.com with ESMTPSA id v9sm38142272pge.26.2017.08.22.11.18.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Aug 2017 11:18:02 -0700 (PDT) From: Arvind Yadav To: b.zolnierkie@samsung.com Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [PATCH] video: fm2fb: constify zorro_device_id Date: Tue, 22 Aug 2017 23:47:48 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP zorro_device_id are not supposed to change at runtime. All functions working with zorro_device_id provided by work with const zorro_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/video/fbdev/fm2fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/fm2fb.c b/drivers/video/fbdev/fm2fb.c index e69d47a..ac7a4eb 100644 --- a/drivers/video/fbdev/fm2fb.c +++ b/drivers/video/fbdev/fm2fb.c @@ -213,7 +213,7 @@ static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id); -static struct zorro_device_id fm2fb_devices[] = { +static const struct zorro_device_id fm2fb_devices[] = { { ZORRO_PROD_BSC_FRAMEMASTER_II }, { ZORRO_PROD_HELFRICH_RAINBOW_II }, { 0 }