From patchwork Mon May 8 13:13:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 91161 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2179132vqo; Mon, 8 May 2023 07:02:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5dUZ+2mhI1aXJUpFZzaaFtgcvl8f6oP/RdbbdiMtReb4c12CXzE+OTOujFuxU2uW8Ms+CQ X-Received: by 2002:a05:6a00:989:b0:63d:368b:76b4 with SMTP id u9-20020a056a00098900b0063d368b76b4mr15039305pfg.17.1683554574449; Mon, 08 May 2023 07:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683554574; cv=none; d=google.com; s=arc-20160816; b=dgbHImBbu3dItK9eNaTQtZmB7tNQ0VNgQw37aOKjuBZg3rfqTsHyLPEwApxXeTaqzk MzQvOb6TuTR0FdO7gaUBlGgs1QHCiXU8tNT8W45EX4jkesz/iAz8xwhd9oRvdKuVmZFp GcwD1EEeqQYAw1tkrbn7O/P1VZ2kdOG+HYTXnA/QWM/P1vsQqAS4AsNTIXpTLAn9HXVw xXB7C7tpylQnQwfMrYHc8O9KvgvNbZiOU9aGAzSGmHpGSXM1Ar26E7KX8rM2vEaEQgsV g97keso3ec/kyuwrhn7ZkmZ+30SIqu52K3AWuBdcnvO+Jk61HCeXSrz22pobZkBsI77W vgsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=THQRHAMI2wjqc2cEXAdfvd3TH+vbwEjAZnae16/zBtA=; b=R47+M+t5tcr8lwqAoZgwHSaA2QgepAAFInwmjuzR3Hv2VkL83TuPoVSmEfOuwv//6G KH7xKik1iTqb3e5TovAyMlt1UDM0Lykc68yQZU++koAl3ksSoM+s6MVnqB5ifR5LI6hT WWn3IAmG000zsEl/yBcGF+W0nw1Gz9B1At9DDmBXEY6ib7Ic+h8bGm9zXAA6ookVDGtW 6KcSkQzzoDr/79umrEzwLYBrFFBlah/bXSrZW/TgpUfVStVPE/bWRE+zNQfoDRSUlgH4 sJuw/joIsS3WoGITH3QZTIeoaHKH4QuEsqx2ieTXyOay7Vga/Ll738kF80xmKCHom4uG 2lqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=DZfCEXEX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a630704000000b0052c998beef6si8501797pgh.506.2023.05.08.07.01.52; Mon, 08 May 2023 07:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=DZfCEXEX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234390AbjEHNi3 (ORCPT + 99 others); Mon, 8 May 2023 09:38:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234346AbjEHNiP (ORCPT ); Mon, 8 May 2023 09:38:15 -0400 Received: from mx.kernkonzept.com (serv1.kernkonzept.com [IPv6:2a01:4f8:1c1c:b490::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D251E34105; Mon, 8 May 2023 06:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kernkonzept.com; s=mx1; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description; bh=THQRHAMI2wjqc2cEXAdfvd3TH+vbwEjAZnae16/zBtA=; b=DZfCEXEXZAriq4HAd9+BbVGe+t XVPzBGXR7TZzvz2e8to3YcRhiy4e78vDbsjBXg9VvSsrDHRz2PhPVdfJOMA5Jt4PkcMio9NCn8yrl LwbuLMZeztXZtWODi0ewaC9lCcbjfkjpNLx70qLLtpHZgjGdl8YIlshRUIh1AeXrpgkL3astVGogr GofpK3Ugq5VREX/ukcekEJw76bcNoHf26eRaNzH+6Ko91Wimz5oUMdocyMZ+eQwbkjvbUlpLvD1wo ECpZ8pYJYg28yn3yRkngOUnpCYiXD1ZZWEq4OztXQXRkEKRaxnHFnAMcwMSfmBAP5A78Vlujvp6KM m2/gV0IQ==; Received: from [10.22.3.24] (helo=serv1.dd1.int.kernkonzept.com) by mx.kernkonzept.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) id 1pw0hQ-009LZn-Gv; Mon, 08 May 2023 15:14:44 +0200 From: Stephan Gerhold Date: Mon, 08 May 2023 15:13:41 +0200 Subject: [PATCH v4 4/6] dt-bindings: thermal: qcom-tsens: Drop redundant compatibles MIME-Version: 1.0 Message-Id: <20230508-msm8909-tsens-v4-4-d9119622cb19@kernkonzept.com> References: <20230508-msm8909-tsens-v4-0-d9119622cb19@kernkonzept.com> In-Reply-To: <20230508-msm8909-tsens-v4-0-d9119622cb19@kernkonzept.com> To: Daniel Lezcano Cc: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Rafael J. Wysocki" , Zhang Rui , Dmitry Baryshkov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , Stephan Gerhold X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765334921555179155?= X-GMAIL-MSGID: =?utf-8?q?1765334921555179155?= Since the SoC compatibles must be followed by the IP version compatible (e.g. compatible = "qcom,msm8916-tsens", "qcom,tsens-v0_1";) it is redundant to list all the SoC compatibles again in the if statement. It will already match the IP-version compatible. The list has already become inconsistent since for example "qcom,msm8939-tsens" is covered by the if statement but is not listed there explicitly like the other SoCs. Simplify this by dropping the redundant SoC compatibles. ipq8064 and msm8960 are still needed because they do not have an IP-version compatible. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Stephan Gerhold --- .../devicetree/bindings/thermal/qcom-tsens.yaml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index d1ec963a6834..59b74fdacf00 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -223,12 +223,7 @@ allOf: contains: enum: - qcom,ipq8064-tsens - - qcom,mdm9607-tsens - - qcom,msm8916-tsens - qcom,msm8960-tsens - - qcom,msm8974-tsens - - qcom,msm8976-tsens - - qcom,qcs404-tsens - qcom,tsens-v0_1 - qcom,tsens-v1 then: @@ -244,22 +239,7 @@ allOf: properties: compatible: contains: - enum: - - qcom,msm8953-tsens - - qcom,msm8996-tsens - - qcom,msm8998-tsens - - qcom,sc7180-tsens - - qcom,sc7280-tsens - - qcom,sc8180x-tsens - - qcom,sc8280xp-tsens - - qcom,sdm630-tsens - - qcom,sdm845-tsens - - qcom,sm6350-tsens - - qcom,sm8150-tsens - - qcom,sm8250-tsens - - qcom,sm8350-tsens - - qcom,sm8450-tsens - - qcom,tsens-v2 + const: qcom,tsens-v2 then: properties: interrupts: