Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp603122ybm; Fri, 29 May 2020 07:51:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKb6pmUu8OzyyuFQzLxn0VdFZ6EdCSCTADzEZcc2KxEfG/ucxdtJj6JxcW0L0rxX1xl77o X-Received: by 2002:a17:906:4e13:: with SMTP id z19mr7677945eju.339.1590763893484; Fri, 29 May 2020 07:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590763893; cv=none; d=google.com; s=arc-20160816; b=szRUu3ek9GE75zyuRtXq15l7PPJyvzohbPhzHCQZQWS/y+BMc2gfPOSD307CjvS7JP pBt0g5Xa8XZ4ac3aX1uq13FTfxa1wlCnqFZNYSEURWq3OyUSvx7HHwM5gZBLiJJFu/g8 RUCka0kyaQTh6hP2eJLff2ETVzjctPEGG1I2ZWDKluYd8feOyuM+LVJ2hm7zIFydYbP0 RX5aUP7n64JaUoDgfzcNgZEUzCdtV0z4aC1e3OWWxFJnSC5ewLA+SXVlecHRpT7VvcO8 Rmnk+3kNbP3XjlwHNGmmrQ/I0FVjxAXX+FmgeKu3TeKADZK4FwkiA4A7NtP+s1JAPKn+ n9ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jOr9kSCuiRiGZqn8Tb20ICSny+xva6gwuSuQrspoPj0=; b=BzWSx4+iy1Vklp+W8JSJJVMh7EhWXNqr+sNZlv1og7LcEyKXQpHxJCa24V5KHjg60Q yVBEvUWOHtIX7igNdPoLPgaouBDJOraz//V5QDtA4P8UlOQDiFvFoxX8d9s+WV4N1xh7 u83IrUaXkCZZ0bzgse0VbE60lrs7YAO9bsnqKPCW6D9BC6ZcKE2a23MuUthOXIlt4K+/ zKzTasSzKkA3nNDWRXgVXlBe7F3r8TuzWjjLY6Admg73L5xomsxRQr32oGoHS66DN6xm eGkFa+7amYCgJi3ICKSP3G3fbdszGX7lAcfY3ctVsCJDhb5evhGl1qngqNsqM7FpLKho fodg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KgwcPZgZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si4663444eds.471.2020.05.29.07.51.09; Fri, 29 May 2020 07:51:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KgwcPZgZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727080AbgE2OvG (ORCPT + 99 others); Fri, 29 May 2020 10:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726838AbgE2OvF (ORCPT ); Fri, 29 May 2020 10:51:05 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4129DC03E969; Fri, 29 May 2020 07:51:04 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id j21so1583188pgb.7; Fri, 29 May 2020 07:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jOr9kSCuiRiGZqn8Tb20ICSny+xva6gwuSuQrspoPj0=; b=KgwcPZgZePP7ksJE/N3Elst8TGaRjtTyng3aVjAQVMiuK5WRj3KBrPfHTaEo6hH/5e NneEeN/a3Q4eVBsbszr8/xziSKQK53Cx1/6TLkiXvS8U4iZAh68lgseLhACqZS43k1Y0 N1X3LVpLdfopR37McJJB4ZVw8N9NVCcsz8RHKEzSnz335rwWLh3vfQiQSGRherRJ0hYP lBLgwY5IO3LGlXYEe4+o53bxWcxv57+99+ayF1+XEQ5xRQ9pV127/3/7OjdsJYysJjO7 Zgqh36dbycrH4G3rU1cCji+DELoV0L/qNEk0OVOlqbv/RwkIlvpncwtNXGy0eWhtF9Wp Iwjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=jOr9kSCuiRiGZqn8Tb20ICSny+xva6gwuSuQrspoPj0=; b=aJ8Lav+fUMBAFKpKknvfCCxBkaPSXlHFlWnsMbhl+9cgIxubYUiTLiRU4dXuveSbVw XZ2artoEyI4Bl85B3XEYXkL4XiNBLGZqVAZCiSxbvPqsvaO/2NZMMsunvM/sEmF4DBuY OXKnh39fzMb220svjmfuwTdrbQFf4urV/w2WVpuIdxCM3myzZsENp4SC+v+Ksp/piVbQ +7Idmp6TMHEKrwdfNgNJxf/gYzUml+88HK41Xjqne71PE4mGb6iY1PlkKqerxtP9SA6s TFKcaNHmgJazoIkO8Zuf3EGoqQtLpxAzlPc/yg4EtY0QPa0OzM0YCUvvDj3twpkSC45B nmDQ== X-Gm-Message-State: AOAM531kmArv7HqLBwCJi/0AUzcx4CWz4jSDBf/j4rUMcSlg43X39hjK TicfyEVNLiwbB94dBQjoqd0= X-Received: by 2002:a62:1d48:: with SMTP id d69mr9214260pfd.27.1590763863863; Fri, 29 May 2020 07:51:03 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id b23sm6933857pgs.33.2020.05.29.07.51.03 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 May 2020 07:51:03 -0700 (PDT) Date: Fri, 29 May 2020 07:51:02 -0700 From: Guenter Roeck To: Andrzej Pietrasiewicz Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, Emmanuel Grumbach , Heiko Stuebner , "Rafael J . Wysocki" , Vishal Kulkarni , Luca Coelho , Miquel Raynal , kernel@collabora.com, Fabio Estevam , Amit Kucheria , Chunyan Zhang , Daniel Lezcano , Allison Randal , NXP Linux Team , Darren Hart , Zhang Rui , Gayatri Kammela , Len Brown , Johannes Berg , Intel Linux Wireless , Sascha Hauer , Ido Schimmel , Baolin Wang , Jiri Pirko , Orson Zhai , Thomas Gleixner , Kalle Valo , Support Opensource , Enrico Weigelt , Peter Kaestle , Sebastian Reichel , Bartlomiej Zolnierkiewicz , Pengutronix Kernel Team , Niklas =?iso-8859-1?Q?S=F6derlund?= , Shawn Guo , "David S . Miller" , Andy Shevchenko Subject: Re: [PATCH v4 03/11] thermal: Add current mode to thermal zone device Message-ID: <20200529145102.GA125312@roeck-us.net> References: <4493c0e4-51aa-3907-810c-74949ff27ca4@samsung.com> <20200528192051.28034-1-andrzej.p@collabora.com> <20200528192051.28034-4-andrzej.p@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528192051.28034-4-andrzej.p@collabora.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, May 28, 2020 at 09:20:43PM +0200, Andrzej Pietrasiewicz wrote: > Prepare for changing the place where the mode is stored: now it is in > drivers, which might or might not implement get_mode()/set_mode() methods. > A lot of cleanup can be done thanks to storing it in struct tzd. The > get_mode() methods will become redundant. > > Signed-off-by: Andrzej Pietrasiewicz Reviewed-by: Guenter Roeck > --- > include/linux/thermal.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/thermal.h b/include/linux/thermal.h > index 216185bb3014..5f91d7f04512 100644 > --- a/include/linux/thermal.h > +++ b/include/linux/thermal.h > @@ -128,6 +128,7 @@ struct thermal_cooling_device { > * @trip_temp_attrs: attributes for trip points for sysfs: trip temperature > * @trip_type_attrs: attributes for trip points for sysfs: trip type > * @trip_hyst_attrs: attributes for trip points for sysfs: trip hysteresis > + * @mode: current mode of this thermal zone > * @devdata: private pointer for device private data > * @trips: number of trip points the thermal zone supports > * @trips_disabled; bitmap for disabled trips > @@ -170,6 +171,7 @@ struct thermal_zone_device { > struct thermal_attr *trip_temp_attrs; > struct thermal_attr *trip_type_attrs; > struct thermal_attr *trip_hyst_attrs; > + enum thermal_device_mode mode; > void *devdata; > int trips; > unsigned long trips_disabled; /* bitmap for disabled trips */