Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp423816ybt; Wed, 24 Jun 2020 02:40:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfLiZ5EBxY0AtMnDP+sFNdGYWOa1dru4XIIAibuOZSeR5fJSPNh5AN/Yav0OGgJMdFOZ1e X-Received: by 2002:a17:906:2304:: with SMTP id l4mr23554389eja.104.1592991648835; Wed, 24 Jun 2020 02:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592991648; cv=none; d=google.com; s=arc-20160816; b=I+cxiIXJ0U3FISFjEmPHlGjY+st1ix7jzvFrNFPP57rMRI7DJaeXrEUSyE3/r+lhLe ZvS11V7/0n1apkzZMONI2eTDITK9U9bJ/5dazZg1ZtcXj5xFjJElrQB96pjLthIVxddP tYUW19ihR31AMimibqHK3K5N60HiGCXo/QKEEdNOiKzT+cOnTKcrl0J0V/lDAvQIvy8F woMrdEu3A4F3kREcv6WrA70OuE6fD4H0M8IDBKRb/ZOBQjjD0yNVb+hzHmBp/38LmDb0 FB18bDZDJNTHAESimOGk4Dyv0pTQsi4oPL2GbCoaqhB+HZ2EdvzuSUtg8ajcjcBjmqmc 9W/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=jhE2g+EdK7KYLYq++li93VyEHOz3u+d9sY9J48zVjmg=; b=uPWCH91QT82yex8lEzzKC6Y3yrok3l6BPtnBeA+xggqmmCv42gH38CJX5hUxcwgZ7X YF9ifnw6ENl9aQcefV+2gJqhTCPZb02Mgene78wx5HvwD0CkLfJ1+RimxO0EnjyJTUVu Nd/d+cJvBPwnnuJfuZwLwR8C9RgQmSLSvr3GvWfYod5hAMJB7juqAgZnPkEncmlj43+A lpaHPe6PsA4tewH+yBld9Q1X+hDpFUkPl9lVcHo4ER+BC1azE/II8zrEH7jN+K52bREG 7HTY5T8VlZTzJlJOUQk3TokO7eF2at+auZ1B4bbyszmTnsgyjMEuxRvXnSsi//RCPh29 G8vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hURrDbTZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si2955938ejk.216.2020.06.24.02.40.24; Wed, 24 Jun 2020 02:40:48 -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=pass header.i=@samsung.com header.s=mail20170921 header.b=hURrDbTZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389574AbgFXJjQ (ORCPT + 99 others); Wed, 24 Jun 2020 05:39:16 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:41573 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388031AbgFXJjP (ORCPT ); Wed, 24 Jun 2020 05:39:15 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200624093912euoutp02cbd593548cc5612d8c986b05ae0c5789~bcWCHF0OX0099200992euoutp02h; Wed, 24 Jun 2020 09:39:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200624093912euoutp02cbd593548cc5612d8c986b05ae0c5789~bcWCHF0OX0099200992euoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1592991552; bh=jhE2g+EdK7KYLYq++li93VyEHOz3u+d9sY9J48zVjmg=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=hURrDbTZdD56J67iWCJ5lqsCaw4LfSkYihIVvTioPMAkRzj5d81cWKbSpU/jPKzmv /i+FnZNPx13Kly1hrT2AEK2/6ocfikCxvVKaIM1Yv47uQWpmxw61iO+oNDqiKM6d1g MHQCpiR+cLB7kEBO4yXS55qgHk4BMfZYggsGPUxY= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200624093912eucas1p22e4ed7d39310e735332a69a65b961a35~bcWB7PPGP0467204672eucas1p2O; Wed, 24 Jun 2020 09:39:12 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id BB.DB.05997.04F13FE5; Wed, 24 Jun 2020 10:39:12 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200624093911eucas1p276a7d01031bdbbe40ddf74aa5e36d44b~bcWBhPncQ1540115401eucas1p2S; Wed, 24 Jun 2020 09:39:11 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200624093911eusmtrp13451e5f4c9eaec6867934affbb943456~bcWBf9aNK2349223492eusmtrp1p; Wed, 24 Jun 2020 09:39:11 +0000 (GMT) X-AuditID: cbfec7f4-65dff7000000176d-43-5ef31f40e8f0 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B1.22.06314.F3F13FE5; Wed, 24 Jun 2020 10:39:11 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200624093910eusmtip2e984fea04ccca3e77383bdce1627692a~bcV-uE0ed1359413594eusmtip24; Wed, 24 Jun 2020 09:39:10 +0000 (GMT) Subject: Re: [PATCH v4 03/11] thermal: Add current mode to thermal zone device 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, "Rafael J . Wysocki" , Len Brown , Vishal Kulkarni , "David S . Miller" , Jiri Pirko , Ido Schimmel , Johannes Berg , Emmanuel Grumbach , Luca Coelho , Intel Linux Wireless , Kalle Valo , Peter Kaestle , Darren Hart , Andy Shevchenko , Sebastian Reichel , Miquel Raynal , Daniel Lezcano , Amit Kucheria , Support Opensource , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Heiko Stuebner , Orson Zhai , Baolin Wang , Chunyan Zhang , Zhang Rui , Allison Randal , Enrico Weigelt , Gayatri Kammela , Thomas Gleixner , kernel@collabora.com From: Bartlomiej Zolnierkiewicz Message-ID: Date: Wed, 24 Jun 2020 11:39:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200528192051.28034-4-andrzej.p@collabora.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Ta0yTZxj1/W4tjTWfxY13bpOlmzMaFBkmPm7O4VyyL7tkZsmWXXF1fEEi VNJCN8ePQcalNFoLXmAdQ1RCLy6DtQgUsXGtKyN1VXZhU4G0wiggNYWSbW0GruUrGf/O85xz nvOeH6+YlBlE68UFyhJepVQUyhkJ1eWJ+rbmpEdytzeGZWD5cZGCv31RAtrGRimob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3jCn3XU8jn2U PZjaZPxjKjps6w/N/yRqmJZYz57+Ozd779ZHnkgv2lfaQFxOK2kbp4+mFp15q7WeanWn32ja 3n9zU8SWriMvZm5bd/KTMl5JSdlaPpY0SNpn9Ok+rbUDAAA= X-CMS-MailID: 20200624093911eucas1p276a7d01031bdbbe40ddf74aa5e36d44b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200528192153eucas1p1b0119928489e5fd22e17908d2bb0890b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200528192153eucas1p1b0119928489e5fd22e17908d2bb0890b References: <20200528192051.28034-1-andrzej.p@collabora.com> <20200528192051.28034-4-andrzej.p@collabora.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 5/28/20 9:20 PM, 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: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > 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 */ >