From patchwork Sat Aug 26 06:26:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9923155 X-Patchwork-Delegate: sameo@linux.intel.com 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 67273603FF for ; Sat, 26 Aug 2017 06:27:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 557CE285B0 for ; Sat, 26 Aug 2017 06:27:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A53F285AE; Sat, 26 Aug 2017 06:27:16 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 0B8A9285AD for ; Sat, 26 Aug 2017 06:27:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752211AbdHZG0R (ORCPT ); Sat, 26 Aug 2017 02:26:17 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33494 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752030AbdHZG0P (ORCPT ); Sat, 26 Aug 2017 02:26:15 -0400 Received: by mail-pg0-f65.google.com with SMTP id q16so2281752pgc.0; Fri, 25 Aug 2017 23:26:15 -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=PVN2d3j9qrF6WrI36hpO1ZcP5zYt+OSsX649xFcPHTk=; b=mYlZczJtPqpI3uQPHJk6bSDLiYTt1zas7KIL82xxHVipNKAwM8EsIN42a88rZhcA2x GV2PYHZfrT6tSmsjEXJuNNVuPc8kCESSfj34XGeEJ6OxX4D1VL6A+e26bxatuacKKOWs K9txibWKQpRGQAhRUNw+EjYq/0kyoy8DA4neXvJRRaO+R+d1toD67wz0ubIUw55DUqNq InsWDV7Hm9H11E16RGcHIHG7IGoNDqrdRsZcnkDrkzsGsO6ggXRTnZB2GvGnwsK5sRdt UHwXsnKTVS+SRCePKtvA/f9b7xT4y2Y1l2+M1QPukTqAZLpwzmE3n5LvqW0P1xFZaJSK KuJQ== 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=PVN2d3j9qrF6WrI36hpO1ZcP5zYt+OSsX649xFcPHTk=; b=X1OprPxC2AU56XEFlNLeF2BrgqGSAhsSfaV+ftO2DPoHhSoxP6Y4Zc/LnFaojz6lbe dKHWqvpoOCIT5O2qpKMBNHcQmchGzQib2vLDiVfIGnjaW+AqW10GZHTihGbnK6gI1ejn wP/oPEiLEQPiWsIk1lnlVPERx6glTlgRpk7Lrm6XUQwYBFaymKBjTvoivCU7W3luPuK5 7PqH+e9i0DN4rrSbC424GIA3IM+6gF1ndZv0Uyv3WNsQaOOUWGm0LInflZ6G5SHX8MP0 99ZdtmOl431c8NFxinHABDFWMsdw1g/5m0728KaHUS4eD+uqYqqFr0Ge54xDNWej4wqD dcJA== X-Gm-Message-State: AHYfb5j12i2oatGMgF7TbgfTkbVu3Y9DoakEaVsu0sRzKtbQV0N92YxB l+MpmLDW3ELkmA== X-Received: by 10.84.211.99 with SMTP id b90mr994462pli.400.1503728774885; Fri, 25 Aug 2017 23:26:14 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b27sm14131065pfe.6.2017.08.25.23.26.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Aug 2017 23:26:14 -0700 (PDT) From: Arvind Yadav To: sameo@linux.intel.com, gregkh@linuxfoundation.org, tomas.winkler@intel.com Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH] nfc: pn544: mei: constify mei_cl_device_id Date: Sat, 26 Aug 2017 11:56:04 +0530 Message-Id: <4ba05401d57ab830769ef411420efdd62fa3f883.1503728344.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP mei_cl_device_id are not supposed to change at runtime. mei driver is working with const 'id_table'. So mark the non-const mei_cl_device_id structs as const. Signed-off-by: Arvind Yadav --- drivers/nfc/pn544/mei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/pn544/mei.c b/drivers/nfc/pn544/mei.c index ad57a8e..a6c2e9c 100644 --- a/drivers/nfc/pn544/mei.c +++ b/drivers/nfc/pn544/mei.c @@ -66,7 +66,7 @@ static int pn544_mei_remove(struct mei_cl_device *cldev) return 0; } -static struct mei_cl_device_id pn544_mei_tbl[] = { +static const struct mei_cl_device_id pn544_mei_tbl[] = { { PN544_DRIVER_NAME, MEI_NFC_UUID, MEI_CL_VERSION_ANY}, /* required last entry */