Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1374000imk; Mon, 4 Jul 2022 01:34:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1soZJiQKCdvEEVQxji2sfE0/OQwUGLvCRdYGaA7crRztlWWwJaHj/K8NItZU0JkmIrd2jH6 X-Received: by 2002:a17:907:763a:b0:72a:5128:b34f with SMTP id jy26-20020a170907763a00b0072a5128b34fmr23163132ejc.372.1656923664391; Mon, 04 Jul 2022 01:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656923664; cv=none; d=google.com; s=arc-20160816; b=TSFy+kFyUivTdjqVHe8VEi/Ye4DnvVEckbCM5A5qYkP5DJ8XIQjBazLuNSRkWUIOI4 vYt/BpqBJG/NuGyXCWQcMf9TGhy0FS3WybtycmzR27AB+lR5QYmrh/avS/Mu/39p4NgC f9j63o6Sg3DLWFC8GIIA/OE4DjLBKDlv77Wl/hC9icu5bGPbjsJTfVnBdmWNiucD8hl6 GAs+TOMQbLSkZBtwvLRm8xZlsSSTDAIARyDrqPeDckO/+18nHgXAxyLAQwQa4ldbMpmh +YXujU+dzk6t/jUazkPLINd+zoN7FeB5l1E1qpdeglqUUFNsxuQHCAj5IGzjHSm3pJgR go2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=vHbQY7wpduYuQBN7qKca+2yICpkbMDfzLp7u7A7S100=; b=fLNRXWAhn8wFlltKdCvWGGRwfhj1q6R+auohBoARbYvGi2gzKJg2y3zjXEUm2yi7RY OnwxG7h6w5FTktYGio5Roze6PCgmbrh/qoGcwPRqHPS6OUcbRi3tuLhb/auMIoOHvJel ItO4tekdXEIcap8K1gzPSM0Yzcvo6xubZAfEX2D45PCAQPaIrf7RnICcdzUoKmt8RRmB UbKUDHpAUoiN7kTSX9GjsAIbMwySjUe8h716IHd1w+jQF6SZh4IEKtMeSuLaQ3y+y0Xa U+lpJvTQ2jVrjD9la+TAIn6Y0sNPkaVJwGiEuQVs4wRU52ey45fnO3xIC0YuO+Y9V5ea 6VLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20-20020a170906111400b0070fe457d158si23847779eja.71.2022.07.04.01.33.59; Mon, 04 Jul 2022 01:34:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233089AbiGDIEJ (ORCPT + 99 others); Mon, 4 Jul 2022 04:04:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232874AbiGDIEG (ORCPT ); Mon, 4 Jul 2022 04:04:06 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 922ED55B2; Mon, 4 Jul 2022 01:04:05 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A776C23A; Mon, 4 Jul 2022 01:04:05 -0700 (PDT) Received: from [192.168.33.14] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D8BF43F792; Mon, 4 Jul 2022 01:04:03 -0700 (PDT) Message-ID: <89f930df-5276-e3b1-7569-4c62ffdf135a@arm.com> Date: Mon, 4 Jul 2022 09:04:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v3 04/12] thermal/of: Move thermal_trip structure to thermal.h Content-Language: en-US To: Daniel Lezcano , daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, abailon@baylibre.com, Amit Kucheria , Zhang Rui , rafael@kernel.org References: <20220703183059.4133659-1-daniel.lezcano@linexp.org> <20220703183059.4133659-5-daniel.lezcano@linexp.org> From: Lukasz Luba In-Reply-To: <20220703183059.4133659-5-daniel.lezcano@linexp.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/3/22 19:30, Daniel Lezcano wrote: > The structure thermal_trip is now generic and will be usable by the > different sensor drivers in place of their own structure. > > Move its definition to thermal.h to make it accessible. > > Cc: Alexandre Bailon > Cc: Kevin Hilman > Cc; Eduardo Valentin > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/thermal_core.h | 12 ------------ > include/linux/thermal.h | 12 ++++++++++++ > 2 files changed, 12 insertions(+), 12 deletions(-) > > diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h > index ff10cdda056c..60844e2d59bb 100644 > --- a/drivers/thermal/thermal_core.h > +++ b/drivers/thermal/thermal_core.h > @@ -68,18 +68,6 @@ static inline bool cdev_is_power_actor(struct thermal_cooling_device *cdev) > void thermal_cdev_update(struct thermal_cooling_device *); > void __thermal_cdev_update(struct thermal_cooling_device *cdev); > > -/** > - * struct thermal_trip - representation of a point in temperature domain > - * @temperature: temperature value in miliCelsius > - * @hysteresis: relative hysteresis in miliCelsius > - * @type: trip point type > - */ > -struct thermal_trip { > - int temperature; > - int hysteresis; > - enum thermal_trip_type type; > -}; > - > int get_tz_trend(struct thermal_zone_device *tz, int trip); > > struct thermal_instance * > diff --git a/include/linux/thermal.h b/include/linux/thermal.h > index 365733b428d8..6289b0bb1c97 100644 > --- a/include/linux/thermal.h > +++ b/include/linux/thermal.h > @@ -80,6 +80,18 @@ struct thermal_zone_device_ops { > void (*critical)(struct thermal_zone_device *); > }; > > +/** > + * struct thermal_trip - representation of a point in temperature domain > + * @temperature: temperature value in miliCelsius > + * @hysteresis: relative hysteresis in miliCelsius > + * @type: trip point type > + */ > +struct thermal_trip { > + int temperature; > + int hysteresis; > + enum thermal_trip_type type; > +}; > + > struct thermal_cooling_device_ops { > int (*get_max_state) (struct thermal_cooling_device *, unsigned long *); > int (*get_cur_state) (struct thermal_cooling_device *, unsigned long *); Reviewed-by: Lukasz Luba