Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4623951ybp; Mon, 14 Oct 2019 07:33:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxB9x9hj0H8CRWjv/CRz4uNI/jeLiAp5h+Wk/J75nf0A7wqn/Fcljd0ztZ4CyeufrOedol7 X-Received: by 2002:a05:6402:88d:: with SMTP id e13mr27907514edy.246.1571063636846; Mon, 14 Oct 2019 07:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571063636; cv=none; d=google.com; s=arc-20160816; b=bijY7PhILvhxW8wHJBZqnbe8SQSVnrJ+27GyDVZHdtO/RJ55a9i8eLz5E6g/zcMbUl 651W72ZNq66ht2EPlWeN5wM+CxUz3RZHr+4X5GNInyP0QWw8fp+KFplcP/11o0PLK3fU ukCI6VAGvhKeBaAPMBiTH14p2KYC2Uld1DMO/JWYlDw9OotD+s95bpnk73+nUSJxb5j9 r54SYIxXa1vZcRNe9En1n+HKGoQ5g66CuQj+b7uAJDJtfJeGmhRqam7NcedXsnwTEMPc m5B2MF+EB30IdY264S23+Gw273qaJuoFXO0Gz6e8tSQVPdN72rHk4jwVK2gdlSlnJY2I XhCw== 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=lhb0CAAW9Vb27xAG0hrpBqjko/4KesG+1qmqJasPplE=; b=p7rPVvwkULEfdiuGLQTjhRIjT5WjOvtKp/QhV0byUEIB+Mwpo+ydt4fBbKBp/XNobT NZVoYP0pw6BokKAinyrNpa4qDKWCdlwE+vue3MgCgZkXtJPsTYIe6xdep+NH7BCcPrnZ SMxDgMHB3GTTMFqkDNEErt1WB6NMSR9fIjis+jFhKciQ7jV1iFwPix1z5zfToA5KwQ/E hVh3VXHJX6Z2TaSuxZqxt5et6qKjdAaTH04gSrBgYiaMaQ2SenS63xtkLpPoqGmqbSZA hZPaFTGFkoEj5gxOulxErQDCPutPiTj7r9yooFu31tpZeT6jhMtiO8pb1knP8ZIc9L6e cNCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YGISSYCx; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si10914683eds.173.2019.10.14.07.33.33; Mon, 14 Oct 2019 07:33:56 -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=@linaro.org header.s=google header.b=YGISSYCx; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732800AbfJNOdE (ORCPT + 99 others); Mon, 14 Oct 2019 10:33:04 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38346 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731121AbfJNOdD (ORCPT ); Mon, 14 Oct 2019 10:33:03 -0400 Received: by mail-qt1-f194.google.com with SMTP id j31so25713842qta.5 for ; Mon, 14 Oct 2019 07:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lhb0CAAW9Vb27xAG0hrpBqjko/4KesG+1qmqJasPplE=; b=YGISSYCxqNj4LZ0pTXTQb4Ol+zJLX0xDR1k0kusL+ftupVzKo5XLvuxExaTUoF7Dwu PfuE3ZcyyfuGB358iQ60d5DbbcP85UlXpmioxYbkGdtuiUvIPsk1+H6nmrBrCQ5g5sgb I1YNvkPhaWKFsZydhbwCejH632z5U4okTdMJSlYzlcYcEDLBHfPqcdEs7cBQ2vk9hS1o WrkGfHn140jkchZQ9k8MzKWZRoWRea5CM/HKlZ1f3EzhEfRx4Kwa4YxOQPhV41XKUTCV /RzuHPig+xFjE+CEcxOG0Jkyb3NR/yK4L3AODwxRItsoDRBXRMO2o+Dzx4FCUdQWinra gLgw== 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=lhb0CAAW9Vb27xAG0hrpBqjko/4KesG+1qmqJasPplE=; b=ZMmBc/a+UvzLuYbvpToc0/+kAoRytU+pvuZVee03o215IjkNQWXOpYJX0GGREyRm/Z VL6oWBQNNWNnWjqmWKHE+zfTYgcyuFRaQMImNSvGRkZSZSv5h6ZDkSeZ1n/PQGO6Su2/ XjJeMa7sRwDwEoa4AvFqWgCkIbWUHG6t4lOstuqytLXJsXpiRDB7exwSJev2og5Vo7BN ijoXnGOhqV9O2LnMtaVBwaBQSY4puodI+Mz2ff1nfjt9MAA23rl3bKtJmTN6xo9bV1PB Ke4+w4vHSB296SDgpaA3xpAagPc/tT5nRPwum2w1bq4W5KnDmgMxDjff6kKFZOQbvvoY 5zPA== X-Gm-Message-State: APjAAAUzD0NV0JTw2ZcWfHOORxbssZA3ZvO8scH1MCxrgkyU+Ifpa9ks HcVykF/Izvn3RDHAMV8bW+R2mw+EDEIzc9jMz3f6Ml975yU= X-Received: by 2002:a05:6214:841:: with SMTP id dg1mr30723344qvb.55.1571063582732; Mon, 14 Oct 2019 07:33:02 -0700 (PDT) MIME-Version: 1.0 References: <20191012065255.23249-1-daniel.lezcano@linaro.org> <20191012065255.23249-5-daniel.lezcano@linaro.org> In-Reply-To: <20191012065255.23249-5-daniel.lezcano@linaro.org> From: Amit Kucheria Date: Mon, 14 Oct 2019 20:02:51 +0530 Message-ID: Subject: Re: [PATCH 05/11] thermal: Move set_trips function to the internal header To: Daniel Lezcano Cc: Zhang Rui , Eduardo Valentin , Linux Kernel Mailing 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 Sat, Oct 12, 2019 at 12:23 PM Daniel Lezcano wrote: > > The function is not used in other place than the thermal directory. It Grammar nit: is not used any place other than the thermal directory > does not make sense to export its definition in the global header as > there is no use of it. > > Move its the definition in the internal header and allow better > self-encapsulation. Grammar nit: Move the definition to the internal header If you respin please fix the same for other patches in the series. > > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/thermal_core.h | 2 ++ > include/linux/thermal.h | 3 --- > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h > index 6f6e0dcba4f2..301f5603def1 100644 > --- a/drivers/thermal/thermal_core.h > +++ b/drivers/thermal/thermal_core.h > @@ -72,6 +72,8 @@ struct thermal_trip { > enum thermal_trip_type type; > }; > > +void thermal_zone_set_trips(struct thermal_zone_device *tz); > + > /* > * This structure is used to describe the behavior of > * a certain cooling device on a certain trip point > diff --git a/include/linux/thermal.h b/include/linux/thermal.h > index 88e1faa3d72c..761d77571533 100644 > --- a/include/linux/thermal.h > +++ b/include/linux/thermal.h > @@ -398,7 +398,6 @@ int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int, > struct thermal_cooling_device *); > void thermal_zone_device_update(struct thermal_zone_device *, > enum thermal_notify_event); > -void thermal_zone_set_trips(struct thermal_zone_device *); > > struct thermal_cooling_device *thermal_cooling_device_register(const char *, > void *, const struct thermal_cooling_device_ops *); > @@ -444,8 +443,6 @@ static inline int thermal_zone_unbind_cooling_device( > static inline void thermal_zone_device_update(struct thermal_zone_device *tz, > enum thermal_notify_event event) > { } > -static inline void thermal_zone_set_trips(struct thermal_zone_device *tz) > -{ } > static inline struct thermal_cooling_device * > thermal_cooling_device_register(char *type, void *devdata, > const struct thermal_cooling_device_ops *ops) > -- > 2.17.1 >