Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp727988pxb; Thu, 25 Feb 2021 13:34:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGQY80p3MtaA5dg2iyswIREVKIulgb5TZdIKBPRZQQ/bETEAmYhHIroVgSSl8XHNfqbaI8 X-Received: by 2002:aa7:c54b:: with SMTP id s11mr8421edr.82.1614288882305; Thu, 25 Feb 2021 13:34:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614288882; cv=none; d=google.com; s=arc-20160816; b=DCaRn2hVT9zPr7MHPu2nTa88WEDatJYkNwwqrh2/cFFcTWdtZ+WKRmM1Ja8RPeE3B0 zKaegtCdJLuB+QHxC4g1dGeaKiIPCWIiJ5zOfa7S/ZHod97rDyjJAm3siScGfxa88Ou1 8buMOkfAUM6vx3GtflTLy3kjZIIsn0Qyw/U3S6OUI1sDHny5FTAk0OANUOKv1Z0CoKVS EBcH6NegieW9Cf8pdCGiuuOHvtth97HaIgDLO6WDYuzLPs7hU3WQssJM5rPCi2aKz6d4 bs13QvXIwoA855DUu1MrqUxioZ824AzZoeMIXMlNMR8tqBbhc7oThsjwEcgqHZY0qEWS 0B/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3vBuDaUGVsZbeS49bATJABgMHWh7/c4vM4XNwcOBQtI=; b=kNtHivJEos1ybz9hPLRQMGHX7ej9VXCL7s9fDYGwpgDbYcuX/dt0jk1cv1g0MO8BYa S3M7taFwX+6ard4uqvprvFhcWCF/D/WRn7pLn54STdq67gqWNMLBtQsZYh+Ah7DZ6zXf z6LOjCV6rWncl+ljJ+CIXDqT61Ypr42B7J8L40VlJbhCOw8qXxfUD0kQuPuiBGbZ6UGQ jJIj/2xG5D8+G3ZSkgTSL9AvxbuisWaVQC7GKsrRl+qktnxZiFmqqYLWjBh7sDIMs7ok WAc+F7yyuGxxaU+Hig5NBB+K8AbsaTXBH5a8T3smR5LE1NYIT8Inl0FowXVQmCXCzpyQ WU+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a72si4459351edf.380.2021.02.25.13.34.18; Thu, 25 Feb 2021 13:34:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233403AbhBYVcX (ORCPT + 99 others); Thu, 25 Feb 2021 16:32:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233161AbhBYVcK (ORCPT ); Thu, 25 Feb 2021 16:32:10 -0500 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [IPv6:2001:4b7a:2000:18::170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE74AC06174A for ; Thu, 25 Feb 2021 13:31:29 -0800 (PST) Received: from localhost.localdomain (abab236.neoplus.adsl.tpnet.pl [83.6.165.236]) by m-r1.th.seeweb.it (Postfix) with ESMTPA id B00701F9FF; Thu, 25 Feb 2021 22:31:25 +0100 (CET) From: Konrad Dybcio To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, Konrad Dybcio , Andy Gross , Bjorn Andersson , Amit Kucheria , Zhang Rui , Daniel Lezcano , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] thermal: qcom: tsens_v1: Enable sensor 3 on MSM8976 Date: Thu, 25 Feb 2021 22:31:19 +0100 Message-Id: <20210225213119.116550-1-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sensor *is* in fact used and does report temperature. Signed-off-by: Konrad Dybcio --- drivers/thermal/qcom/tsens-v1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/qcom/tsens-v1.c b/drivers/thermal/qcom/tsens-v1.c index 3c19a3800c6d..573e261ccca7 100644 --- a/drivers/thermal/qcom/tsens-v1.c +++ b/drivers/thermal/qcom/tsens-v1.c @@ -380,11 +380,11 @@ static const struct tsens_ops ops_8976 = { .get_temp = get_temp_tsens_valid, }; -/* Valid for both MSM8956 and MSM8976. Sensor ID 3 is unused. */ +/* Valid for both MSM8956 and MSM8976. */ struct tsens_plat_data data_8976 = { .num_sensors = 11, .ops = &ops_8976, - .hw_ids = (unsigned int[]){0, 1, 2, 4, 5, 6, 7, 8, 9, 10}, + .hw_ids = (unsigned int[]){0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, .feat = &tsens_v1_feat, .fields = tsens_v1_regfields, }; -- 2.30.1