From patchwork Sat Oct 12 06:52:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 176046 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1777763ill; Fri, 11 Oct 2019 23:53:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqywimUq3cvJt9GweFxCMk50twC0ebKHu+k7MwYz4tE/guCMVGolUgMI0cG/D3A/L9XUdLRC X-Received: by 2002:a05:6402:1519:: with SMTP id f25mr17650934edw.65.1570863192362; Fri, 11 Oct 2019 23:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570863192; cv=none; d=google.com; s=arc-20160816; b=bn+953P39WEHebPW8YXM0UT3j0sNApq0Qe3r7XEVdXmGMLx/+f3XrCnhahBhAojjrU OcsdTbhRQIt6eo3sr68xr3antH9xHixjZa4qTw8b+m/5Gd+QW8YPEUeGoW6YIZIHl38M HRcItQk3sW8Jt1vRpH4eRAYkNeIn1Q9jKZvrSSgnDsmZgzwKmRhG1tMJ4VrRmNHBOyn7 8+SQRFodB0OxNKnitZFY9EFVZXcs7pnHwoldOx/Wssry4OKW9YJoD9/IgxJ+NskrxiYM 0ryfvCnepJT3YToW8C4mRBfcx3hHr/pCDdNwpC4cykKfZOSew+IPAQV687YGkQSKfock T60g== 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=MOqGp6N62GYRWc7Fsvh/EkbvR/AOeQrVY/a8V3x3WKI=; b=R6YR/1nkE0e/Q9AKjtWzlQogBxlIEUVTXuBba699Ba9411g9fdM1BP/NlcWtB0kwg8 ly/wNaSb/cq7+ANmEH2TJhoVzajiOtiar43qDrhNz9NPQn/KtwHc44H94eXCKtpdc900 sQ6RZtncyo/g6lvRyCT6CNdWlwqxtL6PspnrcNQZ+x+H8sBQ2A6ndeANlTQpoHsNToTL QsSOJFyU4K5D/uBKjWpC2gS6NRFtUwvTJtx5kr2zT/Bw391xky9ldWOI2f2G7b8VkoIF ODBbRTeJ94gt903lHK6pMD4+3ebWtQR7cZ1gj/0jMlY0rGjRIOMTKGQE9mAA7FHsJpwB aMBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="middy/KX"; 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 j6si6603684ejj.37.2019.10.11.23.53.12; Fri, 11 Oct 2019 23:53:12 -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="middy/KX"; 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 S1729052AbfJLGxL (ORCPT + 21 others); Sat, 12 Oct 2019 02:53:11 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:33854 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729016AbfJLGxL (ORCPT ); Sat, 12 Oct 2019 02:53:11 -0400 Received: by mail-wm1-f68.google.com with SMTP id y135so10776174wmc.1 for ; Fri, 11 Oct 2019 23:53:09 -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=MOqGp6N62GYRWc7Fsvh/EkbvR/AOeQrVY/a8V3x3WKI=; b=middy/KXn66SPa/ZVSSjJQb1uEc7zwjKuunyzcH+4pvfWYkDB+7mFIqXayXvFj6QEr g9zzy4B7MvvEmifCJM1Zk8vMVy9jj2ML2RZnHMcW49IBikJCbilxBWJMUFh3mIMKLtFI GGrhK1qHWMjrjHxAVOJFguHBgGtbobrmMPgQQz45U9lZ/Jb3Jk35kwMkb3LKMhA9J+/U nJa5UMAOcWs/9U1v8iFWosAkk5eKmWd1UHwl+oGtaSwwVtbKTmpqsB4ua9DiBHEdiq5X tiTSCoa8oiUMQPTqQ0KB2BUIeLK3ceuI9vh6agO+v7Al2FxLZQ9p7SmTfvYVn6XQGMxM 4x/A== 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=MOqGp6N62GYRWc7Fsvh/EkbvR/AOeQrVY/a8V3x3WKI=; b=HIJsFU12IUlmNqQc7047UgPoHJ97ySfvN6QQEnHb5cqR0qReoW4fPTZ4YPQsSv+B7U lCrO2Gx2do/JWKk/r5p7nZ+i4EVGBWYcvuMbS4lBu+pFoobwQQVpauTcLwE64ddpTAxB /2auqWszKowg4YLQ3v5NZzF3IWxexJsxnUIw2is8gGz/tDMV+AiQMWxIkD18Udh2RZ23 CZASdYqeL8kVIJFiV4Rw55CC3Rx/SBKVRAdERiSWdieGF4ylkGcBA/2DeMPwyjAZKUMp BnfGpqaZ3hLezajxQ0+ujYy7J0ew2mNjmF7SualzqexW8yY+CNg0KL6ggW9LFz+X7hzr 96UQ== X-Gm-Message-State: APjAAAXfMP9GWcMNp1jdP7wJwPLcuAF1XqxEwe9KNOLam5fI3zCCCMwA jiKDsJzbw7Ra+mqjzK7/HiTNRA== X-Received: by 2002:a1c:a697:: with SMTP id p145mr5714929wme.24.1570863188994; Fri, 11 Oct 2019 23:53:08 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 23:53:06 -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 05/11] thermal: Move set_trips function to the internal header Date: Sat, 12 Oct 2019 08:52:49 +0200 Message-Id: <20191012065255.23249-5-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 function is not used in other place than the thermal directory. It does not make sense to export its definition in the global header as there is no use of it. Move its the definition in the internal header and allow better self-encapsulation. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.h | 2 ++ include/linux/thermal.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 6f6e0dcba4f2..301f5603def1 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -72,6 +72,8 @@ struct thermal_trip { enum thermal_trip_type type; }; +void thermal_zone_set_trips(struct thermal_zone_device *tz); + /* * This structure is used to describe the behavior of * a certain cooling device on a certain trip point diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 88e1faa3d72c..761d77571533 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -398,7 +398,6 @@ int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int, struct thermal_cooling_device *); void thermal_zone_device_update(struct thermal_zone_device *, enum thermal_notify_event); -void thermal_zone_set_trips(struct thermal_zone_device *); struct thermal_cooling_device *thermal_cooling_device_register(const char *, void *, const struct thermal_cooling_device_ops *); @@ -444,8 +443,6 @@ static inline int thermal_zone_unbind_cooling_device( static inline void thermal_zone_device_update(struct thermal_zone_device *tz, enum thermal_notify_event event) { } -static inline void thermal_zone_set_trips(struct thermal_zone_device *tz) -{ } static inline struct thermal_cooling_device * thermal_cooling_device_register(char *type, void *devdata, const struct thermal_cooling_device_ops *ops)