Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1301497ybb; Sat, 4 Apr 2020 00:31:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLILu9NBDVrMH8564QrZyTnzumIQfjZ5MRzfEqFBsH5ekn0ummhGjRUKnJzqdfMhnQxQV+5 X-Received: by 2002:aca:ad8f:: with SMTP id w137mr5600348oie.104.1585985499168; Sat, 04 Apr 2020 00:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585985499; cv=none; d=google.com; s=arc-20160816; b=T3y4CPbkZkSgeTLlevm4Cka7oTJXh7tusfXIlaI4pPZUk8NApigta2kzZwrCiEXpRN cOnui13A000JK8NrM2SR7FKzb7ruwT9ZqrK137kyPea5QEE70pmiTxr8T8pLDhrs4r1/ qsMXNejKpuBvkOslf7dXtOGi7ClJk+r2aWabeDxesSzKGklUN1tMsOjYyGA0sUUZl2iB /ujsWEx+dZTnO19yiN+4vRU55lmIirfNU1tV4ZjtQoH0PDWKmvPE1v1DhMFKsIbF+3RK 1g/MS9cASLmALs1zd4yyMk4h0z/Omww/GaDojpwHlXbtWfmAcqsqY3x+/5ZLmAiAdl1B LNXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ugNVzQrfk7qCiHJC1N99XeNL9SBKdGiwiAoVFIrY3Yc=; b=ulWFO10U4G7gb7LWatOOiBIq8slfqcXcQn10z+J3InFSsrgRBQ0FU/fpABxD+7HotG 99dasJGAjMg5jjyvWKV2BefAYJoRGjjw+6XP8zthBCQKBDLrKhrFKc08YeSl6rq/5pHL rKvVBMshQqsrCNgrxtj/ektCtMrzR0y94QF69hNSLoUTWMA9YO4HK4oluBikd8aRLN8v JU914tJ3uKDA08he2jxKWnLcRjFJrqaeqoRfBS9dsN7eYR4wbWHR7ykzLxLVbMA+W58t uYNXFXbE+a+v8HDh7uIIPtVnzbfL+8n2vH+Z4w32Bv3FqXIW70imCkt/6AQXMKGv8nRV oyXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=k15y9aRJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f25si5431874otc.161.2020.04.04.00.31.19; Sat, 04 Apr 2020 00:31:39 -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=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=k15y9aRJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726066AbgDDHao (ORCPT + 99 others); Sat, 4 Apr 2020 03:30:44 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:33135 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbgDDHao (ORCPT ); Sat, 4 Apr 2020 03:30:44 -0400 Received: by mail-vs1-f67.google.com with SMTP id y138so6505027vsy.0 for ; Sat, 04 Apr 2020 00:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ugNVzQrfk7qCiHJC1N99XeNL9SBKdGiwiAoVFIrY3Yc=; b=k15y9aRJTJjDPr7xotBcgQatNpRvSmJQ8Uj5UI4hKEF0QaT8VoZmQVLj76v99g+lpu ePTHjPqnR/BXsO3z5aXz+VptCAQsjeExZKehxzX+8R5skZrYWoqmJOvPNJu8J3CwEWoz fi9dc/gM3JFg952P2ORRx3bKsF6fYAKm+aLh76BFdJa4YvhnnEwlcclZd7/le8TFVDYu +3ikxhmDFCLjxL5z4eQXxTgn3WlYf3UWYPwUJQX6RH5euSpFbAVsQy5OfBtPhZ3j2zjN lKv9o32dpM8tJuTVJarTVUztakFY+fJLaZMM4F6Ggo239E8vuBFpiVWswZbJExr4669e 4X9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ugNVzQrfk7qCiHJC1N99XeNL9SBKdGiwiAoVFIrY3Yc=; b=CF6POysAmAxwBBES9X3s8v4gJMke4u7UMqkIUtMN8+zBRcVcZ07uEpp+Jz2+rTcg5r s9/RwyiBKtfsuxmgF9UzACQM47525UYE0tTPWVqNgrh6xQsCCKWGa5WcwDkzAyP/Lsyp K5yIhNRMiI1fm01G2AF3ViJlK+gbGzwCjv2G0aE0bU6bgOeSVR0mtatHtqozKjwNLupZ x/xt9LLzGso0nkYjAUPM4Dx7dTjN52oyuPSQm1ymEL3BFv/shIH+BISkKrqgfOK0cExN jh/pYR6yppUwKphQacPbyqHA6/ilbGIhLhZpeJsqdI4WSX4QiMee4Crt3u3DCSnRnx6q cKIg== X-Gm-Message-State: AGi0PuZiW5+BkmrsCnGjm0MCuITyjegU15VBlX6TbKMM09zxNdtYhl7L SKekHwHmJSk0teaecnI6/GHhVPjVmmVs9bFrxXUWKw== X-Received: by 2002:a67:870f:: with SMTP id j15mr8906449vsd.95.1585985443047; Sat, 04 Apr 2020 00:30:43 -0700 (PDT) MIME-Version: 1.0 References: <20200402142747.8307-1-daniel.lezcano@linaro.org> <20200402142747.8307-4-daniel.lezcano@linaro.org> In-Reply-To: <20200402142747.8307-4-daniel.lezcano@linaro.org> From: Amit Kucheria Date: Sat, 4 Apr 2020 13:00:00 +0530 Message-ID: Subject: Re: [PATCH V2 4/9] thermal: Move trip point structure definition to private header To: Daniel Lezcano Cc: Zhang Rui , "open list:THERMAL" , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 2, 2020 at 7:58 PM Daniel Lezcano wrote: > > The struct thermal_trip is only used by the thermal internals, it is > pointless to export the definition in the global header. > > Move the structure to the thermal_core.h internal header. > > Signed-off-by: Daniel Lezcano Reviewed-by: Amit Kucheria > --- > drivers/thermal/thermal_core.h | 13 +++++++++++++ > include/linux/thermal.h | 15 --------------- > 2 files changed, 13 insertions(+), 15 deletions(-) > > diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h > index f99551ce9838..d37de708c28a 100644 > --- a/drivers/thermal/thermal_core.h > +++ b/drivers/thermal/thermal_core.h > @@ -58,6 +58,19 @@ int power_actor_get_min_power(struct thermal_cooling_device *cdev, > struct thermal_zone_device *tz, u32 *min_power); > int power_actor_set_power(struct thermal_cooling_device *cdev, > struct thermal_instance *ti, u32 power); > +/** > + * struct thermal_trip - representation of a point in temperature domain > + * @np: pointer to struct device_node that this trip point was created from > + * @temperature: temperature value in miliCelsius > + * @hysteresis: relative hysteresis in miliCelsius > + * @type: trip point type > + */ > +struct thermal_trip { > + struct device_node *np; > + int temperature; > + int hysteresis; > + enum thermal_trip_type type; > +}; > > /* > * This structure is used to describe the behavior of > diff --git a/include/linux/thermal.h b/include/linux/thermal.h > index e0279f7b43f4..7adbfe092281 100644 > --- a/include/linux/thermal.h > +++ b/include/linux/thermal.h > @@ -332,21 +332,6 @@ struct thermal_zone_of_device_ops { > int (*set_trip_temp)(void *, int, int); > }; > > -/** > - * struct thermal_trip - representation of a point in temperature domain > - * @np: pointer to struct device_node that this trip point was created from > - * @temperature: temperature value in miliCelsius > - * @hysteresis: relative hysteresis in miliCelsius > - * @type: trip point type > - */ > - > -struct thermal_trip { > - struct device_node *np; > - int temperature; > - int hysteresis; > - enum thermal_trip_type type; > -}; > - > /* Function declarations */ > #ifdef CONFIG_THERMAL_OF > int thermal_zone_of_get_sensor_id(struct device_node *tz_np, > -- > 2.17.1 >