From patchwork Sat Aug 19 17:54:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910603 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 D57FF602C8 for ; Sat, 19 Aug 2017 17:55:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C84EB285A9 for ; Sat, 19 Aug 2017 17:55:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD44328BB1; Sat, 19 Aug 2017 17:55:35 +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 6DDB8285A9 for ; Sat, 19 Aug 2017 17:55:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751909AbdHSRzI (ORCPT ); Sat, 19 Aug 2017 13:55:08 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37184 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751697AbdHSRzG (ORCPT ); Sat, 19 Aug 2017 13:55:06 -0400 Received: by mail-pg0-f67.google.com with SMTP id 83so18745689pgb.4; Sat, 19 Aug 2017 10:55:06 -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=VwN4G51kXJlk6bKy6VC4wUrihAjhr1s1T1ogyfJa0j0=; b=eIKg+VTaE3+ENC+vXq3VvY+ZrjhLBJ4Xx4rblBJ0yNCUN5ix295rpyJmrwvbjz7dBe 8n18jm4RLcDMYmNXEO0PQQj8MjOgw+pQvVweIMfK/ly5VOdmNfhNIdBYv+elARqCymRR +ffRC4+m0x6Y9oeJ4WLOl+kSFDKXKTaz0+DL7A2+vbgcaqKJrLDMdbnO641HHh9szNkc gwtaAq6gkU3tKJ5+Desn0YCK3BC6BeIvpt6UACJdGGbPZXcddHYawHQrupyzWy3OPldq V6h36gGC3zUERMiGN7NRTFMfI/vn76KfF1MzNV842pCcQb8m90VryE9FwbaUUXmTsvTG nnrQ== 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=VwN4G51kXJlk6bKy6VC4wUrihAjhr1s1T1ogyfJa0j0=; b=O0r4ZG9NPdDj0hro2vYECB/040JTnBVdSfOuW1vIespDnnQJSl8nRgEf/PrY1Dgy1x ypSt5GR4zscvBk5ogjAct0YPK12eulgqgIv4kqGU/Ll3NMqlOGnqUgkuvZxEN5PpORfC 9SLnxh7z+VWqLAbX0v75+CmJhGyVCw3BwsiwV9R4l/m3eCH+EhVfdL5cLdHANwWNOJfy iz5UASYqL5P4RdBAyC6ax7uf427WlzSAWUI4yPErvv0AQBGKpn8pyG7KkihWEhyXHucw gLlqbk0724ExdipIjD44BPKmhgAsZt4TG80uUOsGNyjc25+KrzfyQ/0u7UpzN898njS/ 7oBQ== X-Gm-Message-State: AHYfb5iqJDa9eAETS4JZryGRsFvg0nOUtWvcE9CECw+WCXW5qt2Da9oj 7/3rzusVI/ubcw== X-Received: by 10.84.225.18 with SMTP id t18mr13670881plj.189.1503165306457; Sat, 19 Aug 2017 10:55:06 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id w23sm15593701pfl.40.2017.08.19.10.55.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:55:05 -0700 (PDT) From: Arvind Yadav To: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, deller@gmx.de, gregkh@linuxfoundation.org, jslaby@suse.com Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH 3/4] tty: 8250: constify parisc_device_id Date: Sat, 19 Aug 2017 23:24:55 +0530 Message-Id: <1503165296-31801-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP parisc_device_id are not supposed to change at runtime. All functions working with parisc_device_id provided by work with const parisc_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/tty/serial/8250/8250_gsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/8250_gsc.c b/drivers/tty/serial/8250/8250_gsc.c index 63306de..0c078cc 100644 --- a/drivers/tty/serial/8250/8250_gsc.c +++ b/drivers/tty/serial/8250/8250_gsc.c @@ -80,7 +80,7 @@ static int __init serial_init_chip(struct parisc_device *dev) return 0; } -static struct parisc_device_id serial_tbl[] = { +static const struct parisc_device_id serial_tbl[] = { { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00075 }, { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008c }, { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008d }, @@ -94,7 +94,7 @@ static struct parisc_device_id serial_tbl[] = { * which only knows about Lasi and then a second which will find all the * other serial ports. HPUX ignores this problem. */ -static struct parisc_device_id lasi_tbl[] = { +static const struct parisc_device_id lasi_tbl[] = { { HPHW_FIO, HVERSION_REV_ANY_ID, 0x03B, 0x0008C }, /* C1xx/C1xxL */ { HPHW_FIO, HVERSION_REV_ANY_ID, 0x03C, 0x0008C }, /* B132L */ { HPHW_FIO, HVERSION_REV_ANY_ID, 0x03D, 0x0008C }, /* B160L */