Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754535AbdHZJfB convert rfc822-to-8bit (ORCPT ); Sat, 26 Aug 2017 05:35:01 -0400 Received: from mga02.intel.com ([134.134.136.20]:39322 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751973AbdHZJfA (ORCPT ); Sat, 26 Aug 2017 05:35:00 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,429,1498546800"; d="scan'208";a="128447885" From: "Winkler, Tomas" To: Arvind Yadav , "sameo@linux.intel.com" , "gregkh@linuxfoundation.org" CC: "linux-kernel@vger.kernel.org" , "linux-wireless@vger.kernel.org" Subject: RE: [PATCH] nfc: pn544: mei: constify mei_cl_device_id Thread-Topic: [PATCH] nfc: pn544: mei: constify mei_cl_device_id Thread-Index: AQHTHjQ6QjqYnkBCYUeZDIIeWKBnIKKWYKvA Date: Sat, 26 Aug 2017 09:34:56 +0000 Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B74A091F9@hasmsx109.ger.corp.intel.com> References: <4ba05401d57ab830769ef411420efdd62fa3f883.1503728344.git.arvind.yadav.cs@gmail.com> In-Reply-To: <4ba05401d57ab830769ef411420efdd62fa3f883.1503728344.git.arvind.yadav.cs@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.252.24.7] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 28 > > 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 Ack > 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 */ > -- > 2.7.4