Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2781566imm; Mon, 24 Sep 2018 09:48:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbhE42Kubq9BiZxy0K+UdyoUXbVJsryCdB/uJxt58ouw21HMF5zpt7oyjWDKPKBZPDn1Dbb X-Received: by 2002:a62:6699:: with SMTP id s25-v6mr6812753pfj.84.1537807696905; Mon, 24 Sep 2018 09:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537807696; cv=none; d=google.com; s=arc-20160816; b=cYZ1NNI6GwPEHjEIkXYBtxu0360CqSOUK7I5dU4pL8JKxtfqV/MLhyMx2YxVgtCZ7p HOIucTNXjCN0XDals57/QL0sE84n8pfQK5LjIlvOh5NQw3z94lukIt9L351uKk+muyuI m7Wu/YhtKnyHUeLJCIsAviJijyZ1FZvcVWAuQvHgrO5UDKE0WG16jdpgXQ4a2BMiVXE/ 0IkJv8q+K/G0giI3V7mqNnOT4EZW8LNDztxbZl37hym8pX4Gg8po2u3nDP+ITEFQufDI k5YvOwVl+NQQBiPLA+9hyAZz6suzjI4Wy1MkspHZBWNg7MSEgbVkrjJwMqSDjevxsEKY uO9g== 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=/G07YbdXL8jf30XSPS9sydR4znAKgUtQi9Qnks7eL50=; b=R+tklE8CyQkbf0FoAm6DD28gRJ/Glj3YxKm1neXI6K4a41WBfOsng6NIMLLJA++OAV EoKigHSY1ArNjhI8xJjcIEn6Ncw1zpgR7Jyx/KsnVo4bcmEyBtKwJnGjQIsgI45xwwUY OCMaXdRrSjXP139eZfGeKbNnIjUpvRBhwR8AlrKvC7IYj/kA244oj7np0lvjoxvA5Q2V 0ffy+yMFbl3gWbr2N5vhL/TlqTy5rFPRRDHJTZrT85j0rqo5qgv7IUlUKEQw9wZuxfOK S2rTs/rOI8pt1tvI8Ud4+CqByG20FBc0yGDJiJQvq58EpYru4UECNsAQ8cwUZ7nGG2vB yKEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i01oxOVN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10-v6si35607034pla.436.2018.09.24.09.48.01; Mon, 24 Sep 2018 09:48:16 -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=@gmail.com header.s=20161025 header.b=i01oxOVN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732082AbeIXWuA (ORCPT + 99 others); Mon, 24 Sep 2018 18:50:00 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33493 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729013AbeIXWuA (ORCPT ); Mon, 24 Sep 2018 18:50:00 -0400 Received: by mail-pf1-f193.google.com with SMTP id d4-v6so9273837pfn.0; Mon, 24 Sep 2018 09:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/G07YbdXL8jf30XSPS9sydR4znAKgUtQi9Qnks7eL50=; b=i01oxOVNRnasSKDDcwkJ/t1x1p1U89T0ukL21kzOcwhI1Kv36/RPXXW9SawkZLSCZs T0aHARifyfAA1CSH4HNIUkul8zsDm6R/ba0incRfa7qbG99jgCdEIcocoGWiJhzkijXp prmjhKbwGI5BsfgYDCGhynZ+x3c9aTeg4W+krKKiflQhRPCyGf6R9fbOsKJ6WSfodPuW lqE7vMWbRYBacPlGthhA5LMWKBl+q8HebBdgcUAdFOnjRS/IprMCzuZSPeDCSuqQofpC ZozELp9NyAO6oJoHO2bakPfiNGB7g6JxdXJ4CYRU1f3+MTz7pu/3vlfXMXMsd/gANrXV JTUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/G07YbdXL8jf30XSPS9sydR4znAKgUtQi9Qnks7eL50=; b=SqwldTC9g6zxBGTjWFd9ZsR/F5YNuPNKsZtE7ULjR7sa9r5XZkU9Rrb+CNDU2Wx/zt rffXI55K3sZF/67fC2M7uYGA0qhHg4Jr+pjOIB+HxQJIbTbIENFS3MYjCcFaCyJTB5E4 +FXnbMjlqbrg/k6Nez7mWDUybAX7Le8KNmAzzkncyWemP0tlQ1S9SC3IuTOJfg7q3un0 0ouJRJteutNdZoE++1m252ZIfunsspgcy+NSD9IkNxz70R6KKEn5eJHmRsIRw253rRtw qN1p/0xL4N/ayYlm6bR3DTs3DB0ER1aJcGyZMtP/Czb541pJ0vKFhDoVoXPXs3R7nRzq OUrA== X-Gm-Message-State: APzg51AcuTekdts+RShEG5FWucCUWA/vDk7c4CFP8C4HbQM9KbPpo9IG NWKsxfYGaRLYpfRYytCmSGs= X-Received: by 2002:a62:7788:: with SMTP id s130-v6mr7214894pfc.189.1537807617578; Mon, 24 Sep 2018 09:46:57 -0700 (PDT) Received: from localhost.localdomain ([2607:fb90:a699:bb10:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id y3-v6sm56337202pfi.24.2018.09.24.09.46.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 09:46:56 -0700 (PDT) Date: Mon, 24 Sep 2018 09:46:53 -0700 From: Eduardo Valentin To: Bartlomiej Zolnierkiewicz 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 Subject: Re: [PATCH 01/17] thermal: add thermal_zone_device_toggle() helper Message-ID: <20180924164651.GC4988@localhost.localdomain> 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> <20180917093401eucas1p1f1e0de762a88b1327ba229971996e5da~VJjFwrEK11702417024eucas1p1m@eucas1p1.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180917093401eucas1p1f1e0de762a88b1327ba229971996e5da~VJjFwrEK11702417024eucas1p1m@eucas1p1.samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2018 at 11:33:59AM +0200, Bartlomiej Zolnierkiewicz wrote: > > 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. Thanks Bartolomiej for keeping this up. > > Best regards, > -- > Bartlomiej Zolnierkiewicz > Samsung R&D Institute Poland > Samsung Electronics