Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4921174imd; Tue, 30 Oct 2018 09:17:51 -0700 (PDT) X-Google-Smtp-Source: AJdET5ejrmVaPCERx3qsyG/0kSWastJxeMFov69N4X6rBqFoOunBwuz4l6zsmnuYYH2NqyZyV3RF X-Received: by 2002:a63:dc0c:: with SMTP id s12mr18893823pgg.398.1540916271547; Tue, 30 Oct 2018 09:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540916271; cv=none; d=google.com; s=arc-20160816; b=yWV2FIMdiP/GJGhAhskdOwAoldnld0ssJhXaIbW0muaT3OtguYEZ5MKFN1RhJsm4XF 2RzsMim/h5UPnynRKmcAoLUMi4wboxCpqFyd6pezDBcHSb7jdABkxv+FUUNJfCWcmO7n 7btNObKpNQIFqy7wF0KUv/+gfBqamJdt6IxBF+WbVlmxet64HaS9H/WAk/1VK/I4C9mh gxAg3YOhLAKEs4mMgffHTnLTuKahTSku96yEBhpkxMLMvn44Rszaq8SI7Hm9VNa4jbfG WK/Y/B60PxGlTLPowktGSoP6hMZf0J3/8ByEt/Y6FCToG/uHMaL/5wNp3cRVk/9FG/vE 6sqw== 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=25q6l4/xfsz36MsccWJFhC0aagAhoNHMkXUwTUoS6hw=; b=xKj+HcRoh9+hRPhBVDq5IgIPVhofhOrKAUmvXjwpZZF756rgx5UaEzM/NeHpfEGaR2 6Oib3tVTzJ4BA4N/j7sc3hZiVl7jC+5OXe7VrggedwLAVEakcHk4AMeXCSGpN78V0yTv G+qE0nXmj5ACGUAh2F9hdWejgMgnwvpD/J4hUoFpI6Na01M4IBmkM1+uNN9Ws6OKHdah nfl8wVjRhA0854d7C05twpJiII8/6ydLR+5f2SiXCOZefCPrbuVYwAwE+GG43Hs40E/x TMAjPIZCrVzZbY/pgrZwuXwvtz9fShF7RMMHkHkjOmZ5gLvmx+tVUBUxrrkLUp/3QYDc qdUA== 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 j22-v6si6463405pgl.217.2018.10.30.09.17.35; Tue, 30 Oct 2018 09:17:51 -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 S1727661AbeJaAoV (ORCPT + 99 others); Tue, 30 Oct 2018 20:44:21 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:27671 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbeJaAoV (ORCPT ); Tue, 30 Oct 2018 20:44:21 -0400 X-IronPort-AV: E=Sophos;i="5.54,445,1534802400"; d="scan'208";a="283843924" 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:19 +0100 From: Julia Lawall To: Zhang Rui Cc: kernel-janitors@vger.kernel.org, Eduardo Valentin , Daniel Lezcano , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] thermal: armada: constify thermal_zone_of_device_ops structure Date: Tue, 30 Oct 2018 16:14:59 +0100 Message-Id: <1540912500-21941-2-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 devm_thermal_zone_of_sensor_register and the corresponding parameter is declared as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/thermal/armada_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -u -p a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c --- a/drivers/thermal/armada_thermal.c +++ b/drivers/thermal/armada_thermal.c @@ -395,7 +395,7 @@ unlock_mutex: return ret; } -static struct thermal_zone_of_device_ops of_ops = { +static const struct thermal_zone_of_device_ops of_ops = { .get_temp = armada_get_temp, };