Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1302361ybb; Sat, 4 Apr 2020 00:33:05 -0700 (PDT) X-Google-Smtp-Source: APiQypIS6hBQv9KEgFMX9DZ729Qr+QuRxm7zej/JHfzFvQK7d0LjdSwspGLLT4OsGbkmWQAAnT6D X-Received: by 2002:aca:cdd1:: with SMTP id d200mr5631210oig.153.1585985585487; Sat, 04 Apr 2020 00:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585985585; cv=none; d=google.com; s=arc-20160816; b=hBytaSSXNfr1tCmN5oXzd0oWSzyOJV/gW78XdnNU9Opy9SP3ocNb+e+8TEG3BeyV6t c1L9x1tPL76XmQEdIyiio/jDiZ0I+Fg3+PuxP79gxWjThNukzLM9+gemFe4FPFwktgNv 6bpl+CZzqEiD3OIElaO8T/XUz+MzTixMMdGMfNFOUvKsgh6DIpoQix92JTdjLQi5sB5I ogo9Ta8YC3Xs5I6A2DeaeGeANJwf220Ke7PFu8ti430NEH29gMQUefa8wf/nsH3zjklK clh8hd4OwosSENcVkrwNp/+ovA28QjtvMkrHz1C1gXLdgLCWvF+hvT/qqjeebbKLDxbQ 7UjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=SWwqrW8wDRdL2ZORfzu8aPleq1ZB6ziGfokJ1el3IDA=; b=rbbOid3Ws+PwXuek7yWBaf+KV2Ma2ME3L2u//s7B2fLBAhfB4za+ws7/FR3SVRfEIF /+YTkuxLT7h/9umE2WgCwAEF0GOz8sIWommR2CRMM4hgBYkIGDw1VTt6vXybSQZMSsFz GsMZ9QwHjq7wcD4aHsF/I7q/P3JvAdtBFl3+OFG6pG7nqTFhOv3sGnKH23Xnp6iuHuUx 5yOr8pLJaNFmmhAJLLlXdq3iH/HTN/b0p+teF8Lvae2AuRgfc0C7wv9GtC2t08nz9toP d4+mpL64Drj7UYP9AGXMYW55VWyCcM65W4PcLhByfHVzOfN7Gc8xRU3o6vjG7bBMT79V w1wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=Gv0RgukI; 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 j13si1702092oor.55.2020.04.04.00.32.53; Sat, 04 Apr 2020 00:33:05 -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=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=Gv0RgukI; 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 S1726416AbgDDHbd (ORCPT + 99 others); Sat, 4 Apr 2020 03:31:33 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:34647 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726388AbgDDHba (ORCPT ); Sat, 4 Apr 2020 03:31:30 -0400 Received: by mail-ua1-f65.google.com with SMTP id d23so3629052uak.1 for ; Sat, 04 Apr 2020 00:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SWwqrW8wDRdL2ZORfzu8aPleq1ZB6ziGfokJ1el3IDA=; b=Gv0RgukIAw4tMQ0NBljFp0duysnq4ESc0TwQj02b36dtHZvHVp8ENeOZEKEBYSVs9Q 2YRLboMMHQYZGgxdrz5cdDCsh4d/Lhv7uys0SBarv2qVliWaIN5CXmThtYCA8+LikqsG +bR3h16X38ZNMG4cYc8064MGEMKVhm+a61Mc86Wl/0YEkVAVXdkhVJE+vdQ6A3sx5kl7 xN7ls8tNoxVTwi70Jxmp0SkB44brOEi4DS5YJ8xxKoaq+gqnySdwMhwm5SV2zt/LIfis lz9MZ82hJZ/Qw/J7idihkmc3P5jIlRoEmSvHq4/bBd+dcfLSYcbv+mC73xtT1hrw7Rx5 cRlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SWwqrW8wDRdL2ZORfzu8aPleq1ZB6ziGfokJ1el3IDA=; b=iY1Ky4VDgvURaszT7gXnpz9Qsg05BI92QLpDyk5KVQZ3FDvsLBjMgBHuUOzRjHgv8S ZKLyVyy/a3yuP+fK7l5H66D41u9DGxEqowCtTm7ccdNWokk/L7C83maT5zL6EJZ1oI5k 4sgIQ1TAwwZdSvXbZ9hxj43bV6o7YU84FhKAIH3YNv6SCoAqcXSjWfGN2U4P9/PP6xmh DHUgc7XdemsQ4NHUgWv6gHOVxbIdj4pNtjcHMi3o3VXnWE39OLFCjaw+ww5bNPy4E+n5 j1VjmDaFxU0l+rybHvoJdkHMnWZWxnrpOAD/1ixZUZMUSy4Bcey30Djm9Urew/Es/eG8 wCgA== X-Gm-Message-State: AGi0PubeAXO+KGPZsBPqdo3/SNFWZCckd8Yd0p6SDAamO1O4Wnnpx+4i PjUejRPkMzG05LMmv4GfiZpvwWMMjEFrB0NbjMYPxw== X-Received: by 2002:ab0:608b:: with SMTP id i11mr9120478ual.94.1585985488927; Sat, 04 Apr 2020 00:31:28 -0700 (PDT) MIME-Version: 1.0 References: <20200402142747.8307-1-daniel.lezcano@linaro.org> <20200402142747.8307-5-daniel.lezcano@linaro.org> In-Reply-To: <20200402142747.8307-5-daniel.lezcano@linaro.org> From: Amit Kucheria Date: Sat, 4 Apr 2020 13:00:00 +0530 Message-ID: Subject: Re: [PATCH V2 5/9] thermal: Move get_tz_trend to the internal header To: Daniel Lezcano Cc: Zhang Rui , "open list:THERMAL" , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 2, 2020 at 7:58 PM Daniel Lezcano wrote: > > The function is not used any place other 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 the definition to the internal header and allow better > self-encapsulation. > > Take the opportunity to add the parameter names to make checkpatch > happy and remove the pointless stubs. > > Signed-off-by: Daniel Lezcano Reviewed-by: Amit Kucheria > --- > drivers/thermal/thermal_core.h | 2 ++ > include/linux/thermal.h | 4 +--- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h > index d37de708c28a..5fb2bd9c7034 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; > }; > > +int get_tz_trend(struct thermal_zone_device *tz, int trip); > + > /* > * 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 7adbfe092281..8006ba5de855 100644 > --- a/include/linux/thermal.h > +++ b/include/linux/thermal.h > @@ -414,7 +414,6 @@ int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp); > int thermal_zone_get_slope(struct thermal_zone_device *tz); > int thermal_zone_get_offset(struct thermal_zone_device *tz); > > -int get_tz_trend(struct thermal_zone_device *, int); > struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, > struct thermal_cooling_device *, int); > void thermal_cdev_update(struct thermal_cooling_device *); > @@ -473,8 +472,7 @@ static inline int thermal_zone_get_slope( > static inline int thermal_zone_get_offset( > struct thermal_zone_device *tz) > { return -ENODEV; } > -static inline int get_tz_trend(struct thermal_zone_device *tz, int trip) > -{ return -ENODEV; } > + > static inline struct thermal_instance * > get_thermal_instance(struct thermal_zone_device *tz, > struct thermal_cooling_device *cdev, int trip) > -- > 2.17.1 >