From patchwork Fri Dec 7 06:55:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 153095 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp165282ljp; Thu, 6 Dec 2018 22:55:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/WKYds7cKw7RZ77MhxJqHtbB/P8j1fOisBPDoXLEbNLyfqmMRYLn95BM3B9wV9+BQ4u0QNt X-Received: by 2002:a17:902:a50a:: with SMTP id s10mr1012800plq.278.1544165754104; Thu, 06 Dec 2018 22:55:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544165754; cv=none; d=google.com; s=arc-20160816; b=oFx289WUFuSGYXbwgTD1v0gFBFrLp0BfCcPzCj3QjTCUtvXVpIwZuNE0mYm3VGFnxi vQG+Btg9ZRZI4ncOpbvbuh5OUEoIDOE2+pmcshs26crgXZ/z+mlMS3PtSkuXwLzyEauO jCBHcDqXvpcrthvGliq6CbJl0nIkMlZvMzDzjWG705cRKEt/xzl7AOhD3bzYhzOgtytn WZl6+gohs56hDN5OgLBPNPw4J6kBxgB72LNz8zUFXtouG6KrCJJPTPHwVqrNdxwNRYcx Fevz4Yln+l7+OsX2VosAWX/oi/kqJwlbtg14DTGdw8ZttlJr5xgMNeUEDy4gJQXfMf7I uEAQ== 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 bh12si2228143plb.353.2018.12.06.22.55.53; Thu, 06 Dec 2018 22:55:54 -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 S1726081AbeLGGzw (ORCPT + 31 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%) -- 2.17.1 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