From patchwork Sat Aug 26 06:25:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9923151 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 8EC31603FF for ; Sat, 26 Aug 2017 06:26:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CC34285AD for ; Sat, 26 Aug 2017 06:26:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71A45285B1; Sat, 26 Aug 2017 06:26:15 +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 21334285AE for ; Sat, 26 Aug 2017 06:26:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751464AbdHZG0A (ORCPT ); Sat, 26 Aug 2017 02:26:00 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37870 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737AbdHZGZ7 (ORCPT ); Sat, 26 Aug 2017 02:25:59 -0400 Received: by mail-pf0-f195.google.com with SMTP id r187so440550pfr.4; Fri, 25 Aug 2017 23:25:59 -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=kfiDM+Hy8F9wPmtCYQCKGg8oucZUIz1pvCpboXWyvwc=; b=AG6hosS9LMRzPfeYWS1hFkNdO1D/mh0nDnub4NSnNHaZXcd0nQFlJg7ai7dPVv8e/y nePsTnvKaLgU84BWVKQvt3lNBjIKhJ3M2zfAyp1sSYdf9TbWopuFlQfs+Fy5r/EIpQBj Yfz9OzULwZUj4xbGSZbabkReNpK6lfVsHHJmbhfzYkRePElOJa1qFE7KZYH+DaJMRytR aQOHun0oeQltBbCg7Y3RDC57Cjo1OQYJacXG5if9F7qGiYdtnWNtirH+5nL94/Ds4u0/ Cskx7nqCapZbcBIiycXyhVgfJLR6HREVFFmi0oz6Rt0LLcESU3J6jH5I8YzZhHKMZIUi OmqQ== 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=kfiDM+Hy8F9wPmtCYQCKGg8oucZUIz1pvCpboXWyvwc=; b=H2z7RHyXYMHNE3MJux9j1nCdLvysXRWshCCb0z1XImNQWSmCQKHdvRaX2SnBmWoBS2 0ZLrR22NdC/ghOA/wz36eFGMPyxYwBSzmvd6RTMjnTzNDZA7ATUnoRoa6lQDXhu64xaU xlyri/p6LmYIMY4rt0bbOKsPVQd3XfmH2KR02XpRcrzzItckin/I7obpSla54bUP0x9S uZqVVD+mkiAIRoaTYmdx/Oxt4UnS4PnZAWMrvC248sqOD2tclTTrABeC9b604PYxsrGn c7+JsskI3KdNZWDWKODKOSo0dcrCv+JwEiaAUrFoTw14ttEvqEXYOJRdlY7SGM/KOTsa MCeg== X-Gm-Message-State: AHYfb5ilKmJfaCu49uYIHYJ1g2UkbWOp/dQbh9ZIO64la1HPLv8q49Zz 5I6tm2Zq+2MptkPC X-Received: by 10.84.218.65 with SMTP id f1mr979029plm.295.1503728758819; Fri, 25 Aug 2017 23:25:58 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id z9sm13776203pgz.40.2017.08.25.23.25.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Aug 2017 23:25:58 -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: microread: mei: constify mei_cl_device_id Date: Sat, 26 Aug 2017 11:55:41 +0530 Message-Id: <27f776943a6fd60e938b53673fba7562241ba1bd.1503728505.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/microread/mei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/microread/mei.c b/drivers/nfc/microread/mei.c index eb5eddf..70bf7a1 100644 --- a/drivers/nfc/microread/mei.c +++ b/drivers/nfc/microread/mei.c @@ -66,7 +66,7 @@ static int microread_mei_remove(struct mei_cl_device *cldev) return 0; } -static struct mei_cl_device_id microread_mei_tbl[] = { +static const struct mei_cl_device_id microread_mei_tbl[] = { { MICROREAD_DRIVER_NAME, MEI_NFC_UUID, MEI_CL_VERSION_ANY}, /* required last entry */