From patchwork Sat Oct 12 06:52:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 176053 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1778003ill; Fri, 11 Oct 2019 23:53:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMqN/Sr4Gk0/s20KUmOFeQTrss+ZIr0ZTce4ax7SO+iLlMJMXs/jWWiUxcYxYeoTNaEHxj X-Received: by 2002:a17:906:2961:: with SMTP id x1mr17710169ejd.91.1570863216342; Fri, 11 Oct 2019 23:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570863216; cv=none; d=google.com; s=arc-20160816; b=OzJfH43njdNXrgEJAs/3g3F6e/en05qFkznBOTXBNYVb9EOECBRLYKU+zqQ4HLOriC +t7BPi9Py3tYsg8hBm6pbeSej2xD3wYJ0WX89RGNEkn+vOeuuh3Oz6ABuj1YVabMyx5s ldaooOOPY5DH5aeT5+MLnrY5uEuyMDnlYT92K7N0yg18a55FiwTyG+ypp2uC9qp5xWI3 vQwZ+dVAoK2c4yQtV4+29dOrWd89gJpInwe9LZGAsSLbcywmxLhVN6db0fW93sf4W74l ZXbweGwIZB4liZnhz7aifzu3+NzdPaWAtBOTofTUu6VNkx6Hav1M2Jlqv0ve0gKIVbfq qEMA== 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:dkim-signature; bh=e5zHV1yxkD6dbvO/5O4DOC0P97SiQKMYMWVdcBqIV28=; b=ij9QzwrPcWstBgeCcdjYWec2s9DTfxMT6t30Mwk00mxIzBLtUik5zkFAEx2+b9E/KX EysXYKjll7CVp3L5EV4+9JpvvDuP4EWnHAbbZnakKEm0Py4xcHIGuTFej9UuICzNo2cX 3wdBSkjoHqAR5PEwCVX60w4f9TI1YaXha7yNbJuu6LhZhJLDDpAWtNKkRojnSk9cuQxl aoFELnGQEfia9/TkPBZyQHcJs+6RMrXU1NgVNR9GtyQMci+v975uOfYnAIf1ooi5gZjL pJGwYTObq7c0bQFljZqxgoAynQp4LDyxRnjoIRKnqFLlURjHVnLUbpLSfgpP8lp88gDI jRqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MfsX1wPM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u12si7145433ejt.21.2019.10.11.23.53.36; Fri, 11 Oct 2019 23:53:36 -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; dkim=pass header.i=@linaro.org header.s=google header.b=MfsX1wPM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729174AbfJLGxf (ORCPT + 21 others); Sat, 12 Oct 2019 02:53:35 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33850 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728842AbfJLGxK (ORCPT ); Sat, 12 Oct 2019 02:53:10 -0400 Received: by mail-wm1-f66.google.com with SMTP id y135so10776125wmc.1 for ; Fri, 11 Oct 2019 23:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=e5zHV1yxkD6dbvO/5O4DOC0P97SiQKMYMWVdcBqIV28=; b=MfsX1wPMA6F6IS8Pcpw3SsuC+GiBazsQyIjCf6hugUalSLbHrI9BMSj60fA6l3sjka 9XWTPWpQa0K5GHkYDjp84oOK4Gq8ToUHdePTHvmbaWIjJ4W8X6J+PJy8BXe1S1GSSXUF yZsxdZtVX51rWN8TiOLneS419TGoDPs5GQOQhqBzT6GqMIkKw6L78czFfUa7EQ7ujJlB SsHIdobSBEUQq+813GlXAd5SXsPcfbJGzAegHV5LHWV1gTneSqWImasUwKzVr72AmLoR uYHzLyZXA5j2+edcMmT3xVvN1fGxjhaHDOyDKPntpz4omwSIeEbSypJOvGojZWuJkHZL rTtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=e5zHV1yxkD6dbvO/5O4DOC0P97SiQKMYMWVdcBqIV28=; b=SV4cX/pFnVQY04mTvbvAq/Tngyvrfk6DQ2KRXfr+Uy/n8VOWpyiGKSG8bgZVpn5HMh mFtS6DcW1kjsGnbhUALJFa73Kdhhve+JSvDPLEqZz6I9vaoL3RBq2tCLr69oQR5rVuMj y0ge1r8x3b8Xjc3oNHUSsLogziJLJHswSeK9Wes8VNzFAdE9vpgchhyIdUHcLxMrgeQH T3dY//1EHjr6sbQxYBHnqFQOHblx7xaRrtUyzewyoO65moSHge64K99vUjPyBiEPOslB HgkCRVD3DevKxuChe45tKob9UFRNSM31+jXWtLDMLdaVftDXE5JXbo/6i+/qfkeCg2+h YFhA== X-Gm-Message-State: APjAAAU/CmBdwnrmFP9PoadDet0YqU/YVOxalrYEnO6hqclvpzVZdUzR uuGMs1rbEWiW9IZ03dtFvOpXbQ== X-Received: by 2002:a7b:c7c1:: with SMTP id z1mr5690097wmk.61.1570863186531; Fri, 11 Oct 2019 23:53:06 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f437:29a8:ed69:7bab]) by smtp.gmail.com with ESMTPSA id z5sm17450497wrs.54.2019.10.11.23.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 23:53:05 -0700 (PDT) From: Daniel Lezcano To: rui.zhang@intel.com, edubezval@gmail.com Cc: daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org Subject: [PATCH 04/11] thermal: Move trip point structure definition to private header Date: Sat, 12 Oct 2019 08:52:48 +0200 Message-Id: <20191012065255.23249-4-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191012065255.23249-1-daniel.lezcano@linaro.org> References: <20191012065255.23249-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The struct thermal_trip is only used by the thermal internals, it is pointless to export the definition in the global header. Move the structure to the thermal_core.h internal header. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.h | 13 +++++++++++++ include/linux/thermal.h | 15 --------------- 2 files changed, 13 insertions(+), 15 deletions(-) -- 2.17.1 diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 5953bb527ec2..6f6e0dcba4f2 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -58,6 +58,19 @@ int power_actor_get_min_power(struct thermal_cooling_device *cdev, struct thermal_zone_device *tz, u32 *min_power); int power_actor_set_power(struct thermal_cooling_device *cdev, struct thermal_instance *ti, u32 power); +/** + * struct thermal_trip - representation of a point in temperature domain + * @np: pointer to struct device_node that this trip point was created from + * @temperature: temperature value in miliCelsius + * @hysteresis: relative hysteresis in miliCelsius + * @type: trip point type + */ +struct thermal_trip { + struct device_node *np; + int temperature; + int hysteresis; + enum thermal_trip_type type; +}; /* * This structure is used to describe the behavior of diff --git a/include/linux/thermal.h b/include/linux/thermal.h index fae9ff2b079a..88e1faa3d72c 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -343,21 +343,6 @@ struct thermal_zone_of_device_ops { int (*set_trip_temp)(void *, int, int); }; -/** - * struct thermal_trip - representation of a point in temperature domain - * @np: pointer to struct device_node that this trip point was created from - * @temperature: temperature value in miliCelsius - * @hysteresis: relative hysteresis in miliCelsius - * @type: trip point type - */ - -struct thermal_trip { - struct device_node *np; - int temperature; - int hysteresis; - enum thermal_trip_type type; -}; - /* Function declarations */ #ifdef CONFIG_THERMAL_OF struct thermal_zone_device *