Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1302196ybb; Sat, 4 Apr 2020 00:32:48 -0700 (PDT) X-Google-Smtp-Source: APiQypLElKa2EZWPZYc4/00cU3uajmdqLwIcMZxqrnFOGkNOVBIP8Wz+GGIj6Ylh2oVWhMJozwlw X-Received: by 2002:a05:6830:3151:: with SMTP id c17mr10164755ots.310.1585985568695; Sat, 04 Apr 2020 00:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585985568; cv=none; d=google.com; s=arc-20160816; b=JQDv4xehXCvjA0lbmRiq9T598CdIIiAatalPVMvrjN1i5wcqyoO0nmd0TmrgDRWXF+ GfmRrmS2t9JpNTRUsK2oFzaZLtPQS+8hzF6mNcxT8W65G9gl6JynzC4k101X04RZ5kda lMN1sgLuF4gdIrhWBRDjH1w6rfNTVbCcFBRsWKYyqkGN4kEMD2dyg9QBPKmqZWGpJyqi pC9eX+ew2Jt8BJHGPw7eoQDVRRkwAP6N2POIj4U/IhC0J97WhgKeO1t1jrHCSMDLdHs5 pGCx3A5WY+kH9+sW+/KCOACcXeOfDdxSK/Y0i5S6tp98iceanGGLqevETMrXcNsTtZ2E 19mA== 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=0LcIqyzOelKRy7NwzrnjxsMz0cnQ+jIhiQgIFia4NZA=; b=BTAsK9/JwKy2ToUJs7O7gZgfdTFuIbAZGpgvZymjh3XJTyEuZgdmRO9U+OaY12SFGf pa8Mvzf+A+q3s3D0123QkJkrURJhEjQo5VNaR7J0VrZIGqekSuSzW6X9Ps78y2undqgL qF1C6WsYcBD03R1dywvdnSS1CBJYfsQNvFQOPw589PpdU8zzcLYIFXhfeMIbgBpoRXKn iyfX1ECEBRtXidAmXYZOd6TJlkeyhBviMpXQlX8aXLWrJePslsOjpWhjTifiAHm7B6Q9 3vph/BZlGnwVHZozjRmr4c+Gg2jltxSt/sUPMrc0+smFqrEtDDDkCPmODerlhdSz0Nzj eF+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=jcwWn7Cx; 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 r21si4829160otp.320.2020.04.04.00.32.36; Sat, 04 Apr 2020 00:32:48 -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=jcwWn7Cx; 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 S1726189AbgDDHaz (ORCPT + 99 others); Sat, 4 Apr 2020 03:30:55 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:35506 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbgDDHay (ORCPT ); Sat, 4 Apr 2020 03:30:54 -0400 Received: by mail-ua1-f68.google.com with SMTP id a6so3638171uao.2 for ; Sat, 04 Apr 2020 00:30:52 -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=0LcIqyzOelKRy7NwzrnjxsMz0cnQ+jIhiQgIFia4NZA=; b=jcwWn7CxkuVo6AYV6g8AWv5uMyYcuB5tY0C74eAEWC4EB8IuR/4OrfsQyUWFp88Pgn ZH2QK25HNNb7Oi/uZM2c2Rznck5aUPxKL5hqpCjz7kN5YmfmIGb2btyiO2Jur+yvxyNq EwohwQRvXw216bPpEUtq6ZLdnHyCs66b7hgcffHMFvm1pDGiTAgAbX+U5I85dUTevw5l 2ugV6grGu7UxGKJ4+qoXgy5CZQePlSbG7X3LKm7Bp8+CAu53e3VpdpuXxUk0m1SNy320 MM9i7YucgeiMWQtD0JpwPaP+WofdGniDtsZi4nY7a9afDpuKmQ5mbCHkNOQnKfMoHy1U WGXA== 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=0LcIqyzOelKRy7NwzrnjxsMz0cnQ+jIhiQgIFia4NZA=; b=Srja7uipvBBja6xC+zAK7gefPcNC2VTDmvCimZ+LXFQugzff33Qp9pqnDXTCmGKSfb /H8d9DGuy4b3K3gKNazLSMR3inuHtpmacw9hYhfhQSSmoXD5DHUxCwdi7h+aaOZ4J+r1 OURxSEGdqSLuZ9i3/6BDThmFa7liwqDWs7GRPQ+SAUIbRrTef92RxxkLhGTUBvxFieLI jTay1wAcmgPIjPbpwko4Mar7BUHri3J9n23tqkGXfLx4K5zBfvmbwFDtG3rbAIxjMREc ToQwCot6GmjIYmEmoucYAJ8zeyD4DgQlG6MJruNvAf4wydw96Epdj4Uu+FvZ9ZGQUKKP HJAQ== X-Gm-Message-State: AGi0PuantVcd/6oxi4wN71XxmFdRtFGiM00TGXq6R6K0Xzp7YxoCJkY3 oFFV4yqIQi3LmlBJEbPez7XQ3R9Y5aUXO2fv+kyGew== X-Received: by 2002:ab0:654c:: with SMTP id x12mr9585976uap.48.1585985452418; Sat, 04 Apr 2020 00:30:52 -0700 (PDT) MIME-Version: 1.0 References: <20200402142747.8307-1-daniel.lezcano@linaro.org> <20200402142747.8307-2-daniel.lezcano@linaro.org> In-Reply-To: <20200402142747.8307-2-daniel.lezcano@linaro.org> From: Amit Kucheria Date: Sat, 4 Apr 2020 13:00:00 +0530 Message-ID: Subject: Re: [PATCH V2 2/9] thermal: Move struct thermal_attr to the 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 structure belongs to the thermal core internals but it is exported > in the include/linux/thermal.h > > For better self-encapsulation and less impact for the compilation if a > change is made on it. Move the structure in the thermal core internal > header file. > > Signed-off-by: Daniel Lezcano Reviewed-by: Amit Kucheria > --- > drivers/thermal/thermal_core.h | 5 +++++ > include/linux/thermal.h | 6 +----- > 2 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h > index 828305508556..5d08ad60d9df 100644 > --- a/drivers/thermal/thermal_core.h > +++ b/drivers/thermal/thermal_core.h > @@ -41,6 +41,11 @@ extern struct thermal_governor *__governor_thermal_table_end[]; > __governor < __governor_thermal_table_end; \ > __governor++) > > +struct thermal_attr { > + struct device_attribute attr; > + char name[THERMAL_NAME_LENGTH]; > +}; > + > /* > * 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 71cff87dcb46..5aa80fb2fb61 100644 > --- a/include/linux/thermal.h > +++ b/include/linux/thermal.h > @@ -35,6 +35,7 @@ > struct thermal_zone_device; > struct thermal_cooling_device; > struct thermal_instance; > +struct thermal_attr; > > enum thermal_device_mode { > THERMAL_DEVICE_DISABLED = 0, > @@ -119,11 +120,6 @@ struct thermal_cooling_device { > struct list_head node; > }; > > -struct thermal_attr { > - struct device_attribute attr; > - char name[THERMAL_NAME_LENGTH]; > -}; > - > /** > * struct thermal_zone_device - structure for a thermal zone > * @id: unique id number for each thermal zone > -- > 2.17.1 >