Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp231398imu; Tue, 27 Nov 2018 11:30:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/V867rzsgsg3/eVCHs7ytfT0ZBeaphcPdhzuRj65fpNVibjnsK0jC5nAvGuZqj4e7/J208r X-Received: by 2002:a63:f515:: with SMTP id w21mr30306898pgh.220.1543347055078; Tue, 27 Nov 2018 11:30:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543347055; cv=none; d=google.com; s=arc-20160816; b=lk5MQuuGj4ZgARIMV7UpzHeGITOCXe41fTFQ/pDLLDiVWad7nQMi/o9plZMwAOVveg 6znvdqGsRWNpX8hCvhyQS/ATHb3imLPWcuzztFcvCzcUWGvEOL4YXLDICXl93347DIhw gOX44HMZPFWjW+pqLwkfj33cPkKSeTEXMt9W/nOIT1b0txUkoIs5M2JMR3+mT8PMhA/U zAN6oL9LPmTYBIqapehDbVvDmL+jzx1xTFyLIqNqstzgHh57ihxK429yuatOTzd9UoSN 12C6hhuOiDUpMqaLRVIyaPPh9ljj9WiHS5Lg4s6eZWyZDq32ISwGlmAtWM4SjxwwZJk9 HBGg== 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=VPbmyas9NlZ6E8jNGd5atlSp+2kjXH4RHxf4hQaqr5E=; b=USvdSjh0Tyn/7Br8N/Q0wIB1Ap8dM6L8Ks/yDYG2KcDsIS+PyCqW8/LwhJ0oTh8pSz /Ke/cS+KbNiXUZMD7hG9XV8kD1txYyJeZd77utqIWYVSW5VsqHC/KQgiNSamSloFQj9i SPXPNsF2OokIMhhebAGyKei5kU7yTiKT3Ajy7mpcGMOO1b4wqS4AK64pbK3VK+vmqEb/ BMbc/JG/GEoRNhvVevf4IpphCKPR7j7AntCAFuly5kmLdoetnLYj/SUlr0NRiL88K4PX Wef1WdaA3iw5EyjD6BfUR3S8d8dYaEslSSEW+n2FgB8kgTkQQRc8A8QIBFqdr5WRjifn fmAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KqHH8yew; 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 i29si4746517pgb.550.2018.11.27.11.30.39; Tue, 27 Nov 2018 11:30:55 -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=KqHH8yew; 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 S1732170AbeK1F6I (ORCPT + 99 others); Wed, 28 Nov 2018 00:58:08 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35608 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729446AbeK1F6I (ORCPT ); Wed, 28 Nov 2018 00:58:08 -0500 Received: by mail-wm1-f68.google.com with SMTP id c126so114103wmh.0 for ; Tue, 27 Nov 2018 10:59:16 -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=VPbmyas9NlZ6E8jNGd5atlSp+2kjXH4RHxf4hQaqr5E=; b=KqHH8yewrjxLbKLIdYdPuJs7H9D4T2N8PrHGC49h2+HkPYIPgwUCujFbStV1okHUZY soJY9SJRFbKUxw4fGsKwi4ad/KHRIB/ARXkloqfI/tJWbdoa3RF2fBBO67D4nvn8bJV5 4ELMmDzSBQrZxECdrXkLwa9Z2UaIcP8uzy5bw= 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=VPbmyas9NlZ6E8jNGd5atlSp+2kjXH4RHxf4hQaqr5E=; b=N5TDSyAgrGfuUv7GDCsFdNaJNUsImJIv8Ar6JsOY4OwSLB2/04PNYVPewek8gnu3Wn IfeBISiKDmxY+Fq0DhKFcO++Ghu1yTMdg1tmRq+FCPMZ5DJ+EZhp2nQGCbtm3cVb7oOQ /r2uhJz5te8aXpDOsCyZNvecetdlRcQL/xWFycF20okb3Kw62PJfPf7yghPn1GskjJOM 3eqSRZj1wdUfyrgt75M1IHaprreVdwytAzFpsFO9GH4TvnhZT5nT8eKSzYer2OsMBPdJ bdBk3IxNcTlN3SprXtNhtlyJhWZKiOquTqtLVkVhsc/S1WKvlaOXmGPHK+SoHONYWPRR DNGg== X-Gm-Message-State: AA+aEWYrz5nPcPTQTvur9fXakCcdAhXNcP/k5nnl/yvX6NbccER6PDq+ NhcyXRmfVM28OSbil9YoxI4Ao65N2t8= X-Received: by 2002:a1c:400b:: with SMTP id n11mr73966wma.85.1543345155624; Tue, 27 Nov 2018 10:59:15 -0800 (PST) Received: from localhost ([49.248.92.105]) by smtp.gmail.com with ESMTPSA id 129sm84582wmd.18.2018.11.27.10.59.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 10:59:15 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rui.zhang@intel.com, edubezval@gmail.com, linux-pm@vger.kernel.org, Daniel Lezcano Subject: [PATCH v3 2/2] drivers: thermal: Move QCOM_SPMI_TEMP_ALARM into the qcom subdir Date: Wed, 28 Nov 2018 00:28:41 +0530 Message-Id: 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 | 0 5 files changed, 12 insertions(+), 12 deletions(-) rename drivers/thermal/{ => qcom}/qcom-spmi-temp-alarm.c (100%) 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 031f61e7dfe8..415361685480 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 100% rename from drivers/thermal/qcom-spmi-temp-alarm.c rename to drivers/thermal/qcom/qcom-spmi-temp-alarm.c -- 2.17.1