Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4888673imd; Tue, 30 Oct 2018 08:51:16 -0700 (PDT) X-Google-Smtp-Source: AJdET5dYU0Lku6EotBBMUcfIb1ghInH39EZaPpzT+BNjIGcV+ax/4FbxxsG2IQarkVaKeFKjmdo4 X-Received: by 2002:a63:f05:: with SMTP id e5-v6mr17829054pgl.84.1540914676865; Tue, 30 Oct 2018 08:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540914676; cv=none; d=google.com; s=arc-20160816; b=eOxTHIbmxdYKOy1/jd7xOHj8NiK7MnNVosgnREp1ja8p7hGTgGNYQl9Kub1ZAI4ffz Du+MZS14FLCShNG3OBheFl3cNhi20zBZC0BfwQHsp+fJVoget1kjwWtUzvvbkIHOHfW0 ozMJrf9rFNVIYXQuUxcm5j4dr5hVAqTJ2MPgMnPnXLMJfpNcUHPTSa1GnCijw4s+6/Qs dUdHKHxj93A0owjeRIIyy6tOEUtzEkzhwJXtOTzha5P97sNWSjUFy6CoBOyge3wdR5/B d8ucwv/so0LbgHyOd4zXP8oulD0o687wF3G4q9xsq/Z3jYxzSUlU0wYmoMWuvUex6LBq kyqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=a6F//Mb0olnkmr/RtTg/hm39e2PUkRaiPPiunZNlbNg=; b=i7x3iMxdOKnBnYMtVcPimsJKhzTpPzkruqC2BtaxHExf1AtxoY8MkOpUasjmTL9Hta m2pbweVM6flFAD2H+7lyq/SXXyNZMhIvy6n1hZBc0q4jjLVb9sqpvA20zPtqwlb9hrzf mWEzemflPVMp6ZaVgI4QlHkmZZm/y4IJkylohnF5bHKxvL5SuNDCErldFyNwflNl9b/R LwoD9IGdIe1tIRcJYZ9hv2xx8sGhlaHVQdb6AMvRD8oJfxdBZnIlL/soIMfDMGStp4+q IHOaGdg7BPQDh5ThrCy3gHVwEr6zKOiRqNofhdDBBNed8RjgqWQCq7CDImJvit/L91WQ An9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15-v6si1380634pgg.271.2018.10.30.08.51.00; Tue, 30 Oct 2018 08:51:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727714AbeJaAoX (ORCPT + 99 others); Tue, 30 Oct 2018 20:44:23 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:23902 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbeJaAoW (ORCPT ); Tue, 30 Oct 2018 20:44:22 -0400 X-IronPort-AV: E=Sophos;i="5.54,445,1534802400"; d="scan'208";a="283843925" Received: from palace.rsr.lip6.fr (HELO palace.lip6.fr) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 30 Oct 2018 16:50:20 +0100 From: Julia Lawall To: Markus Mayer Cc: kernel-janitors@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Zhang Rui , Eduardo Valentin , Daniel Lezcano , Brian Norris , Gregory Fong , Florian Fainelli , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] thermal: broadcom: constify thermal_zone_of_device_ops structure Date: Tue, 30 Oct 2018 16:15:00 +0100 Message-Id: <1540912500-21941-3-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1540912500-21941-1-git-send-email-Julia.Lawall@lip6.fr> References: <1540912500-21941-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The thermal_zone_of_device_ops structure can be const as it is only passed as the last argument of thermal_zone_of_sensor_register and the corresponding parameter is declared as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- Unrelated to this change, is there a reason not to use devm_thermal_zone_of_sensor_register? drivers/thermal/broadcom/brcmstb_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -u -p a/drivers/thermal/broadcom/brcmstb_thermal.c b/drivers/thermal/broadcom/brcmstb_thermal.c --- a/drivers/thermal/broadcom/brcmstb_thermal.c +++ b/drivers/thermal/broadcom/brcmstb_thermal.c @@ -299,7 +299,7 @@ static int brcmstb_set_trips(void *data, return 0; } -static struct thermal_zone_of_device_ops of_ops = { +static const struct thermal_zone_of_device_ops of_ops = { .get_temp = brcmstb_get_temp, .set_trips = brcmstb_set_trips, };