From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752176AbdHHNoH (ORCPT ); Tue, 8 Aug 2017 09:44:07 -0400 Received: from mga14.intel.com ([192.55.52.115]:18467 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880AbdHHNoG (ORCPT ); Tue, 8 Aug 2017 09:44:06 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,343,1498546800"; d="scan'208";a="137717221" Message-ID: <1502199838.4296.64.camel@intel.com> Subject: Re: [PATCH 0/4] constify thermal_zone_of_device_ops structures From: Zhang Rui To: Julia Lawall , linux-arm-kernel@lists.infradead.org Cc: bhumirks@gmail.com, kernel-janitors@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Eduardo Valentin , linux-rpi-kernel@lists.infradead.org Date: Tue, 08 Aug 2017 21:43:58 +0800 In-Reply-To: <1501965437-30730-1-git-send-email-Julia.Lawall@lip6.fr> References: <1501965437-30730-1-git-send-email-Julia.Lawall@lip6.fr> 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 On Sat, 2017-08-05 at 22:37 +0200, Julia Lawall wrote: > The thermal_zone_of_device_ops structures are only passed as the > fourth > argument to thermal_zone_of_sensor_register, which is declared as > const. > Thus the thermal_zone_of_device_ops structures themselves can be > const. > > Done with the help of Coccinelle. I still see the same problem in other thermal drivers, which is not covered by this patch set. Can we fix them all in one time? thanks, rui > > --- > >  drivers/thermal/broadcom/bcm2835_thermal.c |    2 +- >  drivers/thermal/qoriq_thermal.c            |    2 +- >  drivers/thermal/samsung/exynos_tmu.c       |    2 +- >  drivers/thermal/zx2967_thermal.c           |    2 +- >  4 files changed, 4 insertions(+), 4 deletions(-)