Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754452AbdHYCdy (ORCPT ); Thu, 24 Aug 2017 22:33:54 -0400 Received: from mga07.intel.com ([134.134.136.100]:43145 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754191AbdHYCdx (ORCPT ); Thu, 24 Aug 2017 22:33:53 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,423,1498546800"; d="scan'208";a="893907511" Message-ID: <1503628451.2774.9.camel@intel.com> Subject: Re: [PATCH] thermal: max77620: constify platform_device_id From: Zhang Rui To: Arvind Yadav , edubezval@gmail.com, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Date: Fri, 25 Aug 2017 10:34:11 +0800 In-Reply-To: <30f8e66e4397f59747e9843e7c09b0c42b2d5804.1502623863.git.arvind.yadav.cs@gmail.com> References: <30f8e66e4397f59747e9843e7c09b0c42b2d5804.1502623863.git.arvind.yadav.cs@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 989 Lines: 33 On Sun, 2017-08-13 at 17:03 +0530, Arvind Yadav wrote: > platform_device_id are not supposed to change at runtime. All > functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as > const. > > Signed-off-by: Arvind Yadav applied. thanks, rui > --- >  drivers/thermal/max77620_thermal.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/max77620_thermal.c > b/drivers/thermal/max77620_thermal.c > index 159bbce..3c74b91 100644 > --- a/drivers/thermal/max77620_thermal.c > +++ b/drivers/thermal/max77620_thermal.c > @@ -149,7 +149,7 @@ static int max77620_thermal_probe(struct > platform_device *pdev) >   return 0; >  } >   > -static struct platform_device_id max77620_thermal_devtype[] = { > +static const struct platform_device_id max77620_thermal_devtype[] = > { >   { .name = "max77620-thermal", }, >   {}, >  };