From patchwork Sun Aug 6 07:09:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9883539 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 B22DA602B6 for ; Sun, 6 Aug 2017 07:10:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A33D528645 for ; Sun, 6 Aug 2017 07:10:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 984E928648; Sun, 6 Aug 2017 07:10:12 +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 4125428645 for ; Sun, 6 Aug 2017 07:10:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751270AbdHFHJ5 (ORCPT ); Sun, 6 Aug 2017 03:09:57 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35037 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbdHFHJn (ORCPT ); Sun, 6 Aug 2017 03:09:43 -0400 Received: by mail-pf0-f194.google.com with SMTP id j68so5977112pfc.2; Sun, 06 Aug 2017 00:09:43 -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=jHJHjC5BbX+klJ5b022dr0pnlbef3kPGQQXcdDuJeIU=; b=sS1ZH4n8IE/r7lF2Y10Kg5MAp8/q1s2OYab3P/66GhFfOAzN92WOUcnp1myLukL7Uz FhU6Uy/6Bl37uQV45A/gSSIP2j8FUavtJKyd3+zlQHLwTeck3jZswDKqOcwcS/q6GWOj P2L+mjV1Ip2GFDNUVH7w5O5FacaJCuBHa82ISB+MlvuP6bkRU7rnqHXMdr7wz54j7lVp 3xHVDJw4AUN5HT9M04WYTchsPetgMCi0h4CUYx619sy0A2QpQEKRQUxkp44M2HpE/1Cj 3ESZoSrfXF0rzTJU+sA7NyzByDN1sEXuXdrGlBqsI9MDcy1NIEKPubFsbkbOXSzhSB5Q 4NWg== 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=jHJHjC5BbX+klJ5b022dr0pnlbef3kPGQQXcdDuJeIU=; b=Ui/z6EBsDoqQ40vR/OX6m3DpgXm5b8BwStQ1sIjL2lqyUiF+Jx+PZBWKvgz5Pt7Itv N8JUszXIWBRRe6YJKnYBhXgrIGnflSeiCytP9bsBDW6+Cp5Em0EjIaleZJy1t4uiPxc1 Hv5Yko/lL1D7XbJGpS3UhZM1e58DUrcOCzR+tsGQ6ITVmugWRG0rFPmbIjY5u407c6Vb Wbq+eZE9GA8EyBecWWP+00YvdqTQMZiNCllJ6Wmr2YS+EGWh2Z6bQLHgC2AfjOdTppYZ FulaCi+m2Sj8rGDtOrdyWT0soAamzDzB371Ud/4+8/nAoUl63J/ThZNXmOXDOFXh/4ak Fwrg== X-Gm-Message-State: AIVw111pHTSMGH6prrv+3Av8FgBHiiAvj3xWmJRqT+jbG0mB6w1i9FE8 3xg5sBK2G56ihQ== X-Received: by 10.98.101.4 with SMTP id z4mr7803259pfb.163.1502003383074; Sun, 06 Aug 2017 00:09:43 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.81]) by smtp.gmail.com with ESMTPSA id j71sm10030687pfj.44.2017.08.06.00.09.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Aug 2017 00:09:42 -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 2/2] video: fbdev: udlfb: constify usb_device_id. Date: Sun, 6 Aug 2017 12:39:28 +0530 Message-Id: <1502003368-12355-3-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/udlfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c index 05ef657..d836e6e 100644 --- a/drivers/video/fbdev/udlfb.c +++ b/drivers/video/fbdev/udlfb.c @@ -54,7 +54,7 @@ static const u32 udlfb_info_flags = FBINFO_DEFAULT | FBINFO_READS_FAST | * which is compatible with all known USB 2.0 era graphics chips and firmware, * but allows DisplayLink to increment those for any future incompatible chips */ -static struct usb_device_id id_table[] = { +static const struct usb_device_id id_table[] = { {.idVendor = 0x17e9, .bInterfaceClass = 0xff, .bInterfaceSubClass = 0x00,