From patchwork Sun Aug 6 07:09:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9883535 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 65137602B6 for ; Sun, 6 Aug 2017 07:09:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5460B28645 for ; Sun, 6 Aug 2017 07:09:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45BC628648; Sun, 6 Aug 2017 07:09:59 +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 E2F1028645 for ; Sun, 6 Aug 2017 07:09:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751411AbdHFHJn (ORCPT ); Sun, 6 Aug 2017 03:09:43 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33320 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751270AbdHFHJl (ORCPT ); Sun, 6 Aug 2017 03:09:41 -0400 Received: by mail-pg0-f65.google.com with SMTP id u185so5822862pgb.0; Sun, 06 Aug 2017 00:09:40 -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:in-reply-to:references; bh=z8uBLh9rgiz1KYXB1Dxx1f9mxeZSEu6QHg/yLa+VArA=; b=GRIiBD7Vh99beiby4mV4e3f4aXEK5ZZxtzjIuqs233Z8d+oT/ZHhKlmc4llDomjp0b v0GEBMVLksjljaDY++DPXZom6VC8Tobu4n8i5DvzXjkxiOizSa2jg/HUgqAID1A6+/No kKy60l1UKL5qvJY5Y+6wXhXKaohaIbo3HshFQQUGFO13TfBRZTbZqIkou5shz0b6b8ve RmtTCiyd/Wr2rr68EWFgzEUuw5PbVa75mgBMc9+7rNDfAFS83sOYx9Mm4PoS6BG+mXVc vsMuQ9mm43q36Cq6cbvQ7LIUN2FY8Eg/N/EMHveRN+Wtsnkuq8P92+KrUlxNhClNn2t9 6m7w== 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:in-reply-to :references; bh=z8uBLh9rgiz1KYXB1Dxx1f9mxeZSEu6QHg/yLa+VArA=; b=D5CINZ6KHxuvmkAZrGcd84LUKoHIMUFKPvaeaXXLcCmLSuWvNwBdjxTucGee8NAdbv OvqhXR8NGyX4lAL53Xm8R388vOfrWLLv5mwPn5GQIKU+gYMjMPMUTRhzJwMGJ9me7lmR oBfMxpixvvN+M0lyX7oOTVS9fpnHR72n9a8Nlc84ZuFkbNP2hCVzxg76Sz1iTDPWwiD+ pGpJMPJPLmlXJ10+a5tS/Bnr0OIxmHS8U9Ofs4Rk/XHUBDmVcuFy29mXcXTKm33rzUU/ YmIsuP49ZahLXMYFcs6Yyi48XCTxZ2zbBq8UqUAUgTXuoaDdVa4froeBF3bkAY9wTosq N09Q== X-Gm-Message-State: AHYfb5gJI62iVLtU6db+tFyro6PIDL0ZKYfVdjbyBoOHFzcjABQj2VjB F43VmSDWvrB0bQ== X-Received: by 10.98.18.21 with SMTP id a21mr2643032pfj.255.1502003380574; Sun, 06 Aug 2017 00:09:40 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.81]) by smtp.gmail.com with ESMTPSA id j71sm10030687pfj.44.2017.08.06.00.09.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Aug 2017 00:09:40 -0700 (PDT) From: Arvind Yadav To: steve.glendinning@shawell.net, b.zolnierkie@samsung.com, bernie@plugable.com Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] video: fbdev: smscufx: constify usb_device_id. Date: Sun, 6 Aug 2017 12:39:27 +0530 Message-Id: <1502003368-12355-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502003368-12355-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502003368-12355-1-git-send-email-arvind.yadav.cs@gmail.com> 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 usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/video/fbdev/smscufx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/smscufx.c b/drivers/video/fbdev/smscufx.c index 449fcea..2275e80 100644 --- a/drivers/video/fbdev/smscufx.c +++ b/drivers/video/fbdev/smscufx.c @@ -122,7 +122,7 @@ static const u32 smscufx_info_flags = FBINFO_DEFAULT | FBINFO_READS_FAST | FBINFO_VIRTFB | FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_COPYAREA | FBINFO_MISC_ALWAYS_SETPAR; -static struct usb_device_id id_table[] = { +static const struct usb_device_id id_table[] = { {USB_DEVICE(0x0424, 0x9d00),}, {USB_DEVICE(0x0424, 0x9d01),}, {},