From patchwork Sat Oct 12 06:52:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 176044 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1777741ill; Fri, 11 Oct 2019 23:53:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRfIuq4I0P+8YtKNlBI3u5AiDx/MYtqO5LnGHSRw5astKWRcSGuhC/ezc23DvLiJu+bW8l X-Received: by 2002:a05:6402:1548:: with SMTP id p8mr17363815edx.43.1570863190948; Fri, 11 Oct 2019 23:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570863190; cv=none; d=google.com; s=arc-20160816; b=w3+A0sLvZF8de/4fkFAbSkM4+9BXccyT4eKGJbf3MTgoNk+6bIlbuv/Lfm4+L2FOfm gV0lHnaoe6sbMH8VyZAhwy/pIIY0oYazTLKHuC/IPdyrNuRaJsVmcuqiUm0LZE9A/eGk CkwI74P4iS3IruscVXlmTK37qDT7UhxJNtRoh9Nwk05BBRUKB+NLhlCbsN6NASq6qSHC VM0kDFCG0x/s2mtfIWerWPzMZW8NkRSizpkPJIQcIsO6icp12sWrWCCQAELpPdnMSKqh S43cuWgT+ansywYAqKyYCBkcIqwQdrz1HWzy/g9WSGV7E1cztMYrgR/GWxBDzfXn54Dr L8GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Qqj/nrtgrj7T526mRixYvVR9P1e7BOzGZBrRGmLHoMg=; b=fbRD9TDPFT3OL3anhChfTtblzgOVkZ7ZBxXWpUIRlo5GTc1fzfhpcYMcfsMVZHyhSL BQW0Ckque34d0zAaZbbNcy4g5YFaWaTzE+2Mh8akm8od5F67jdU0p1Uoumq/g7vz/Jsb nel4nFxBL3TkaXkS/eDBvMLJw7VUnu5cGhJrrL4gVgPkrECO4OzTCdGIimwrHOXe/aFA AhhxvtewPZSGV3nAbCs1Vvs++wtHQnrRHBUtkAe87vvUOO7NMmtxhHtUMljNVR7D9bHx 4uyS3UcDRmADAXvX5BK3DB0w6kFwpoE3vsOwAT06sbJi/ZUynzGka3VK9CLF6kcAFo7O qzOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VDORRgs7; 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 j6si6603684ejj.37.2019.10.11.23.53.10; Fri, 11 Oct 2019 23:53:10 -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=VDORRgs7; 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 S1729015AbfJLGxH (ORCPT + 21 others); Sat, 12 Oct 2019 02:53:07 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33298 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728842AbfJLGxG (ORCPT ); Sat, 12 Oct 2019 02:53:06 -0400 Received: by mail-wr1-f66.google.com with SMTP id b9so14118812wrs.0 for ; Fri, 11 Oct 2019 23:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qqj/nrtgrj7T526mRixYvVR9P1e7BOzGZBrRGmLHoMg=; b=VDORRgs7HVWsN7gF9w1rwI9oadtUhPDEXK5jDTa6w26m94qeaobDZVn3JcRsxxXacV goVv2ihF8bSRKgTOIg4XudDbWMyyFFngulBpWD7SO0ldxIV/9ACtiuBWJqYRZX4cjg82 u3ad4jjLCVohlMz4KnAEATIZWI0spGkZcuWV6ZDLWThEkmgV/DOxP4okzE1ZfO+xvXyu q4VFSfR2WkodxKFoQjeUmVUpW2SoXCVqMWzXCzo64JNKjIPgwBGXReXkNCfpTyTy1GI9 d4m31zDs/G36G6uWGG+biaFkM0VuiVdHlT1ehNfaJ0oJPKa2W7OT8BCHkYt4oIR/M/ZO HXbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Qqj/nrtgrj7T526mRixYvVR9P1e7BOzGZBrRGmLHoMg=; b=pqns2Qa+iIKXA8qigCkainX+xXjYp3yLWOFvFNPvgXL+nyvTw7oOEe6ZY7pAABJuRE sEdxRrc8kVqpxPjbQNvG63/J/4QYm1Viu5CNb4S3Z32iAPAqQ08bdoPicuxijBRGFx5V N/zCn3pcyoAHF5sWm18i9YkMrTfnCc30zW/0qNxCcyeJNSP1pZ4nMC+vOMdb1YhfgPjB cDDf2GlHsfAQGyWzncDs67LLyUasS0uKjR65kA/g70wmpxQ1fNe77lVX3mo9xp5cBiMi ZMJ+XywryS2dS8CiolJFsFgAt0YE1/C4Yhh4LSwE/FUxXl+i/zIBteUi5Iy52VEZicUp 5WwQ== X-Gm-Message-State: APjAAAXdf9+xGXhTf382Nxi2EtueyxaEc8K0k2itkey9l4giF20hdvNH YjtSyDQnShrJEDkebbfofocTfw== X-Received: by 2002:adf:f192:: with SMTP id h18mr15691694wro.252.1570863183415; Fri, 11 Oct 2019 23:53:03 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f437:29a8:ed69:7bab]) by smtp.gmail.com with ESMTPSA id z5sm17450497wrs.54.2019.10.11.23.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 23:53:02 -0700 (PDT) From: Daniel Lezcano To: rui.zhang@intel.com, edubezval@gmail.com Cc: daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org Subject: [PATCH 02/11] thermal: Move struct thermal_attr to the private header Date: Sat, 12 Oct 2019 08:52:46 +0200 Message-Id: <20191012065255.23249-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191012065255.23249-1-daniel.lezcano@linaro.org> References: <20191012065255.23249-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/thermal/thermal_core.h | 5 +++++ include/linux/thermal.h | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) -- 2.17.1 diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index f1206d67047f..0e964240524d 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 a389d4621814..603766a4068c 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -46,6 +46,7 @@ struct thermal_zone_device; struct thermal_cooling_device; struct thermal_instance; +struct thermal_attr; enum thermal_device_mode { THERMAL_DEVICE_DISABLED = 0, @@ -130,11 +131,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