Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3750942imm; Mon, 17 Sep 2018 02:34:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYOR60e7gvi4F/azzxwyzaE3QpTNtbdS+Lsb96V5jvVOwjv85wubSmFPEIYrgZGKungfcan X-Received: by 2002:a63:ee56:: with SMTP id n22-v6mr22740068pgk.402.1537176867490; Mon, 17 Sep 2018 02:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537176867; cv=none; d=google.com; s=arc-20160816; b=mAL4WlSGT9BmE68P9ALXxw8FkxInZOsQFcGsFdJhCISkMtuRHo82Pe41A0zf1lWtyQ wtGspC7fr85tndVXG3xQEA44o5lHo+206qRB6TlXQoZvZtECsxL9150bMwTF8zL77f/7 52Yeczp+TOnfa/UHpt7T61/UsYjs4kXfvE4+c95XMX9p/oWfQSpZTRxxdaVG+tCRAyQ9 icUQi+WCPh6IDEWR7e0Le9W6+T5Tr0bBEAtm4/xSdZk76n+5jVBbpbEbqXvAjfqgh+lv 9Ja1LBY0+hZbS/6QGyBPE0GKH4BvWdchAMIa7whlxADJUdu91Ofi5cjFeGx4TBgFqssY /PdA== 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:message-id :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:cc:to:subject:dkim-signature:dkim-filter; bh=JM6XjBr35fT5YZL4XW8eE9r2qhg5Ujehby5KiU9fT0k=; b=CvWPFBORsr+mTqYHL/Z0oT7/mRj4Z2WiH6Ifr/7XEXll/Jd7sQnspn83t3JpYh8nql 91c0e8hia032YZ3l0M5wniu+EwpmLdjBGHDZS6lvD2fnCYhFfJbu8Q0hjdONzWFq87gq vQCZVdOylCiKN3k7eUmWhmoU2m8FV6qXg4c+m4SFows14/VzcUrAKHce5LJWN/R35GmS U0/snjLpsfQTETb5zGc3AZzVhw/Lz9/JVlmp4ZOKRX0dbqoIoQD8jGVWmFbcJ9Sygq/X Csnw1w+zXPtlnPQf+5gy/+45ajM+9W8BypqnkAzUC1t56nAxy4V0ThUKVJ+P/dI3C1K/ wk8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ST14Rx+0; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g92-v6si15368284plg.11.2018.09.17.02.34.11; Mon, 17 Sep 2018 02:34:27 -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=@samsung.com header.s=mail20170921 header.b=ST14Rx+0; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727052AbeIQPAk (ORCPT + 99 others); Mon, 17 Sep 2018 11:00:40 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:39897 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726753AbeIQPAj (ORCPT ); Mon, 17 Sep 2018 11:00:39 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180917093403euoutp010e8cc290634be609774361963c83eed0~VJjHhahNJ0616906169euoutp01F for ; Mon, 17 Sep 2018 09:34:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180917093403euoutp010e8cc290634be609774361963c83eed0~VJjHhahNJ0616906169euoutp01F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1537176843; bh=JM6XjBr35fT5YZL4XW8eE9r2qhg5Ujehby5KiU9fT0k=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=ST14Rx+0IrhpbJLmPnDA9fh9jQxP8kc5lXZYgF3MvtCRdh5Tl6jBzhfTOh9okI8pM LMow2VUEWDJhRIPpPzKC9CJI9/w8x0v8RQ3rC+f2Sr8UgKd+R8AyCL5cqsmxIMRnLb ZfztzfJR9C10DlufQMg33cKthxX9tgC2quWOTSQw= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180917093402eucas1p2cd93ea61bc731b04719ed66660ca03ba~VJjGrqCf72931229312eucas1p23; Mon, 17 Sep 2018 09:34:02 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 1E.34.04806.A057F9B5; Mon, 17 Sep 2018 10:34:02 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20180917093401eucas1p1f1e0de762a88b1327ba229971996e5da~VJjFwrEK11702417024eucas1p1m; Mon, 17 Sep 2018 09:34:01 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180917093401eusmtrp1f7c78e3a6d91377390fd6b8bf9b5bc07~VJjFd5Q-_2980029800eusmtrp1c; Mon, 17 Sep 2018 09:34:01 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-b9-5b9f750a61e2 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id A3.06.04284.9057F9B5; Mon, 17 Sep 2018 10:34:01 +0100 (BST) Received: from [106.120.53.102] (unknown [106.120.53.102]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20180917093400eusmtip1548f7aa42d9b056fd62669814adfdd52~VJjE2Vm0m0086100861eusmtip1F; Mon, 17 Sep 2018 09:34:00 +0000 (GMT) Subject: Re: [PATCH 01/17] thermal: add thermal_zone_device_toggle() helper To: Eduardo Valentin Cc: Zhang Rui , Eric Anholt , Stefan Wahren , Markus Mayer , bcm-kernel-feedback-list@broadcom.com, Heiko Stuebner , Thierry Reding , Jonathan Hunter , Keerthy , Masahiro Yamada , Jun Nie , Baoyou Xie , Shawn Guo , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz Date: Mon, 17 Sep 2018 11:33:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <0495124b-9ae8-3b4b-5f0c-208d2e06e5a5@samsung.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01SaUhUYRTtm/fm+Zyc4WssvKklTmggaTs82oOiBxEVEUQT5KTPpXSMGcfS Py5Ji2laVuo4LmWLmoM2mJPmhstMlhqm2bRYWBZpLui4YIXm6yX479x7zrn3no+PJuSDYlc6 VB3JadSqMAUlISss0698Jbo85brMIinz3W5FjDGlmWTyurrFTH18J2Jmv/wUMy/MCSImUX+X ZO719TownVUGirGnNCHGMPzBgenrvUYxP8pdGFOhjWKmq3JJpuaTHe3CbMKIhWL1n9sotlLf 48A+eb+ZLajuF7Gm4isU+7G7mmJTLgxTrLk7l2CfZ0yRrNVmFrF208pDTscl2wK5sNAoTrN2 h78kZDK5Fp39TZ1v/NRIxKFBcRJypAFvgv7kO2QSktByXIjgVm8LEopxBBWpdQSvkmM7gmGb ct6R86aWEvoP5xwFnoJhBEHKePIcQdPOeD9M9RzjNUuxDzx/bRbxGgLnk/DuTbuIJyi8Ba5f KkY8JrEX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KB2CwC qhJfr30Cu0hUIELi1sMOFogaQYmTM5+A2ZwC9hIzZ04B62UW0JPYcf0XK4QtL7H97RzmCYyC s5C0zEJSNgtJ2QJG5lWMIqmlxbnpucWGesWJucWleel6yfm5mxiBEb7t2M/NOxgvbQw+xCjA wajEw5vRNy9aiDWxrLgy9xCjBAezkggvM9/8aCHelMTKqtSi/Pii0pzU4kOMpkBPTGSWEk3O ByafvJJ4Q1NDcwtLQ3Njc2MzCyVx3vMGlVFCAumJJanZqakFqUUwfUwcnFINjJ2xkyL5/y3Y sN8pNKi+M8nZ8P6Uko1XqiKeuby7ezc+Z7fwz6Kt2+J51G49EHjxeVXK6yahqkeGe1uftM5b u+E/05kS52fpgQYrpv+vD2q1nhF+fYesN7eF8eGYDRFfM2+ul1OQz1V4XhK1fkv38dff8t8x PLBMV7urVJDXnvF2/fsXU9b0HlBiKc5INNRiLipOBAB0bsgABgMAAA== Message-Id: <20180917093401eucas1p1f1e0de762a88b1327ba229971996e5da~VJjFwrEK11702417024eucas1p1m@eucas1p1.samsung.com> X-CMS-MailID: 20180917093401eucas1p1f1e0de762a88b1327ba229971996e5da X-Msg-Generator: CA X-RootMTR: 20180410124248epcas1p453f74df4e183f9d68de255847c093d4e X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180410124248epcas1p453f74df4e183f9d68de255847c093d4e References: <1523364131-31059-1-git-send-email-b.zolnierkie@samsung.com> <1523364131-31059-2-git-send-email-b.zolnierkie@samsung.com> <20180910171605.GA4196@localhost.localdomain> <0495124b-9ae8-3b4b-5f0c-208d2e06e5a5@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/14/2018 01:40 PM, Bartlomiej Zolnierkiewicz wrote: [...] >>> --- a/include/linux/thermal.h >>> +++ b/include/linux/thermal.h >>> @@ -467,6 +467,7 @@ struct thermal_cooling_device * >>> 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 thermal_zone_device_toggle(struct thermal_zone_device *tz, bool on); >>> >> >> You missed the #else section of the #if IS_ENABLED(CONFIG_THERMAL), >> didn't you? > > No, this function shouldn't be used outside of CONFIG_THERMAL. Please disregard my previous comment. I see now that the CONFIG_THERMAL=n stub is needed and I will add it in the next patch revision. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics