Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp205481imu; Thu, 6 Dec 2018 22:57:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/VqiBwY0YIjqLh9Yn9aFcN2kxqSSmcENk1LgxAwaJa7evi5WSn7RGJPZ+/gNmsZUWkDkZZJ X-Received: by 2002:a17:902:4503:: with SMTP id m3mr1063333pld.23.1544165847032; Thu, 06 Dec 2018 22:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544165847; cv=none; d=google.com; s=arc-20160816; b=aP4HVPBjAOObD240zhGAvo8oEocdfNSTiSx6FXEwgCJFDWi0EnjWxQ13/dCcffYEyy zGJ4tONV0aOJqPVuryBjVNjjzYC56aCxzX96IFoq9/JyChdkSNFF8o/xoEC3zIBlaMea Q5gxzvw8ZfWy4vlsZue+NMhkHRtQVu4uNARi+t3SfVmcENfRPxFf/QG6HI6V+c3P60fk 3HY5IJM3HuKjvdPf/bwMyYMgwnO80Rzzn2W6RSVihu44O7EfqHmGhc5njp/TNkzw5J70 /o8fnbisdseu/Z91C2Ni1JkK+e5JVgL95aE7yiZkslVQcEqSIVJImoyD4Sl28f8nRNx2 U0OQ== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=HwvSgP64bKQDlpi0ap9Z/MZsdq68kIB1wq6c38Sv56k=; b=wR7WbJ8QkOFkJGt5M7VLxpPj3AJezki+Um5hRRpJdR9fDh7XMjYDIzNTFOLJbIOOAy pdjOsqh21IHUhXlJVANgBsmdNHJfAYDNg4dtyyct6UZCBKh/shiVNU+GaUHcsVGE5q5N 1Jmm3LVe9xVW0w5qeiClPWGN1a9VXt4JSk36AUF3w2p6Z0GnrsheYTsw1xPmv1eGxIwE Wa4ThPrpBFUwF9cLFyp9wki+7pNh3w1FyNR7AmR/XLPj5yMeAlEGm2hucvzpAEVBqhcf Ondw+6hZGjopJ14Xvdpt0P5QrYLoWrCpxWLjsJ7X6vc0pPwtrfS3/VavHb3vSJr3Fjgh F6OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jne2E8bS; 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 v9si2470335pfl.45.2018.12.06.22.57.11; Thu, 06 Dec 2018 22:57:26 -0800 (PST) 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=jne2E8bS; 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 S1726077AbeLGGzw (ORCPT + 99 others); Fri, 7 Dec 2018 01:55:52 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38121 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbeLGGzw (ORCPT ); Fri, 7 Dec 2018 01:55:52 -0500 Received: by mail-wr1-f67.google.com with SMTP id v13so2740456wrw.5 for ; Thu, 06 Dec 2018 22:55:50 -0800 (PST) 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 :in-reply-to:references; bh=HwvSgP64bKQDlpi0ap9Z/MZsdq68kIB1wq6c38Sv56k=; b=jne2E8bSg+kFQ99DNjye77ayA1vuXreU1+ZqX1A4kk/UZTmARykw1v9F7Q+jsM+d/U YWM8vik5N5Vj/LYfMVF2tDTqoV3IztUOL6IT0L0qUVS0ldgYu7HgxV9x4SY50IoVm//v NyqRqFZGuxy9t9Rr7RvEwvsnm5j7yH03KEz7s= 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:in-reply-to:references; bh=HwvSgP64bKQDlpi0ap9Z/MZsdq68kIB1wq6c38Sv56k=; b=X3KR9CHQF9tes31T40D45yN9MeALJ4sqhOimTxklwt4jSYqpG42ZZh5E+IA9uj4fzZ Zbji2vAWwdcpN/DBPyRocxPP/ngqJUq6ZEOo7DemQDlW+v2NcaR6WJ/5a3qN17/aND4y HCcKhDMukl6P6fI2XdvM1X1ZbyjVWXYg5boFXb6/xJIEEKG+FevmgcvHlAeDVXTmBgZV Z1yOHtBii9u78VAs47KFsk2QEAT4JsQlBXaQ5Cr6DN467XVS5u7sTCN8hvoMo6j+gF0I QsRRF3/1I8t5PZHSqRgbZqTeWXIbzTY6Nw8OOXq/+v3rgOssiDxICyXqri+2D5mGuX00 WyLA== X-Gm-Message-State: AA+aEWZuSdHUQAkjdKgT+bVteuxBZ9jRpsj/5CXHJsT3FkR2Z+/W7f9t Ty+0fqxS4HBzoLzVz4lS2zWRFHd1/fs= X-Received: by 2002:adf:8001:: with SMTP id 1mr738660wrk.23.1544165749588; Thu, 06 Dec 2018 22:55:49 -0800 (PST) Received: from localhost ([49.248.194.38]) by smtp.gmail.com with ESMTPSA id l197sm7466278wma.44.2018.12.06.22.55.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Dec 2018 22:55:49 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rui.zhang@intel.com, edubezval@gmail.com, sfr@canb.auug.org.au, Daniel Lezcano Subject: [PATCH v4 2/2] drivers: thermal: Move QCOM_SPMI_TEMP_ALARM into the qcom subdir Date: Fri, 7 Dec 2018 12:25:27 +0530 Message-Id: <40e807c17ef0ca34852f635eb2c3b25333fe9f76.1544165234.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This cleans up the directory a bit allowing just one place to look for thermal related drivers for QCOM platforms instead of being scattered in the root directory and the qcom/ subdirectory. Compile-tested with ARCH=arm64 defconfig and the driver explicitly enabled with menuconfig. Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- drivers/thermal/Kconfig | 11 ----------- drivers/thermal/Makefile | 1 - drivers/thermal/qcom/Kconfig | 11 +++++++++++ drivers/thermal/qcom/Makefile | 1 + drivers/thermal/{ => qcom}/qcom-spmi-temp-alarm.c | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) rename drivers/thermal/{ => qcom}/qcom-spmi-temp-alarm.c (99%) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 772ab9dadda7..344f6459862b 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -374,17 +374,6 @@ config TANGO_THERMAL source "drivers/thermal/tegra/Kconfig" -config QCOM_SPMI_TEMP_ALARM - tristate "Qualcomm SPMI PMIC Temperature Alarm" - depends on OF && SPMI && IIO - select REGMAP_SPMI - help - This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) - PMIC devices. It shows up in sysfs as a thermal sensor with multiple - trip points. The temperature reported by the thermal sensor reflects the - real time die temperature if an ADC is present or an estimate of the - temperature based upon the over temperature stage value. - config GENERIC_ADC_THERMAL tristate "Generic ADC based thermal sensor" depends on IIO diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile index 0b5d33a49b3e..486d682be047 100644 --- a/drivers/thermal/Makefile +++ b/drivers/thermal/Makefile @@ -29,7 +29,6 @@ thermal_sys-$(CONFIG_DEVFREQ_THERMAL) += devfreq_cooling.o # platform thermal drivers obj-y += broadcom/ -obj-$(CONFIG_QCOM_SPMI_TEMP_ALARM) += qcom-spmi-temp-alarm.o obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o obj-$(CONFIG_ROCKCHIP_THERMAL) += rockchip_thermal.o obj-$(CONFIG_RCAR_THERMAL) += rcar_thermal.o diff --git a/drivers/thermal/qcom/Kconfig b/drivers/thermal/qcom/Kconfig index be32e5abce3c..cdb455ffd575 100644 --- a/drivers/thermal/qcom/Kconfig +++ b/drivers/thermal/qcom/Kconfig @@ -9,3 +9,14 @@ config QCOM_TSENS thermal zone device via the mode file results in disabling the sensor. Also able to set threshold temperature for both hot and cold and update when a threshold is reached. + +config QCOM_SPMI_TEMP_ALARM + tristate "Qualcomm SPMI PMIC Temperature Alarm" + depends on OF && SPMI && IIO + select REGMAP_SPMI + help + This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) + PMIC devices. It shows up in sysfs as a thermal sensor with multiple + trip points. The temperature reported by the thermal sensor reflects the + real time die temperature if an ADC is present or an estimate of the + temperature based upon the over temperature stage value. diff --git a/drivers/thermal/qcom/Makefile b/drivers/thermal/qcom/Makefile index a821929ede0b..717a08600bb5 100644 --- a/drivers/thermal/qcom/Makefile +++ b/drivers/thermal/qcom/Makefile @@ -1,2 +1,3 @@ obj-$(CONFIG_QCOM_TSENS) += qcom_tsens.o qcom_tsens-y += tsens.o tsens-common.o tsens-8916.o tsens-8974.o tsens-8960.o tsens-v2.o +obj-$(CONFIG_QCOM_SPMI_TEMP_ALARM) += qcom-spmi-temp-alarm.o diff --git a/drivers/thermal/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c similarity index 99% rename from drivers/thermal/qcom-spmi-temp-alarm.c rename to drivers/thermal/qcom/qcom-spmi-temp-alarm.c index b2d5d5bf4a9b..c1fd71dbab3e 100644 --- a/drivers/thermal/qcom-spmi-temp-alarm.c +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c @@ -23,7 +23,7 @@ #include #include -#include "thermal_core.h" +#include "../thermal_core.h" #define QPNP_TM_REG_TYPE 0x04 #define QPNP_TM_REG_SUBTYPE 0x05 -- 2.17.1