From patchwork Mon Jun 19 10:14:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 109910 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2899310vqr; Mon, 19 Jun 2023 03:34:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5JoJoS25plV/uY9FFOaCTKMfyMGd8yoGoUWlkAke7CH67s+5YDs9uuLjGXVDAhF0dFDDHG X-Received: by 2002:a05:6a21:338b:b0:121:8d14:4963 with SMTP id yy11-20020a056a21338b00b001218d144963mr4190240pzb.7.1687170898029; Mon, 19 Jun 2023 03:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687170898; cv=none; d=google.com; s=arc-20160816; b=cVAjdJcKb2jjKu5AHbA6BPeEFQSol6tVgYjE7cfi37Ls8w2+RuSf4RpFPqCqI7+1ub PEUyFptzUguwaEBQQlNIqtPzz7iKRvJL/aa8/NFPLC5w8mCTR3YQmXigS9BwlchDpJPM bVI1avnwyRLfcclqZa9iCEoZfHYFU1eu21DNXdM5EkB9TksPxSt9lbgsyM+/a4V+iwbF +GLNLGpVRoyPr/WM5E6A2x0goxKDPu4q5Pr5sbnt9gbeaC3w5Oi+rT5cpbaxczgJ/lkU L9sn6NLYI+tFmHxNWVD8smqxLGMF4NKQAr4yw59+va3vhTUnFtv9xfaTPEYfXwkgB0kq PP/A== 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:to:from:dkim-signature; bh=jmy3F/STWdRiL9bkqBfvVFLMvAXz5VhFeOVkXrx1CF4=; b=NjMDFnpNpIjE0NcrpDeJ956WM2By178KVefyz8oXw0+dY55Z/EgHDQ39S6PJKLMTe4 WmTH2XKIUAiMB4pCoF5oyg4Wxis/HwzDz/9EFyff/L5RpoIxbaYVMokbvntf9qCiujOO ZKHHJioNnkMF2RnP/NNHk2ycd8S5Rr1wLWNHAEClOzm9/DwFhrVNwT++1hJtsnpoF3V8 0hU4Z0h9fgRCrDLY99RJSTsQOvlDa5Kj9ep4Rzgc7BptCe69dFdJJHfCChTVR46N2Wfa TDUxcN67sfI2dUC0+QnmjzF4akfpvwYNWUjLWSeWV8NZ62JmuHDhjibVa631Yka/TAHS O+cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wQThKrx+; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020aa79610000000b00666ae7e325asi2943824pfg.191.2023.06.19.03.34.44; Mon, 19 Jun 2023 03:34:58 -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=@linaro.org header.s=google header.b=wQThKrx+; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231698AbjFSKOf (ORCPT + 99 others); Mon, 19 Jun 2023 06:14:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbjFSKOd (ORCPT ); Mon, 19 Jun 2023 06:14:33 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC2811A8 for ; Mon, 19 Jun 2023 03:14:31 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-51a4044b7a1so4074611a12.2 for ; Mon, 19 Jun 2023 03:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687169670; x=1689761670; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=jmy3F/STWdRiL9bkqBfvVFLMvAXz5VhFeOVkXrx1CF4=; b=wQThKrx+V5oo09dQi+r3zPsMwmfjwQyVipEpwJsNEiLF1Z4vY+W0lrXMO0WKykqGOR EH4bEpxGufI7N5p//HoX3BtghojxkfiHV26ShxRtV+M58RtL1P41umG9+Z4QnWWcJArQ qzjKqqn5R6BHN7dVUY9+MrJs3nCsC6OHLQoJPMqZRuspLOwDALCJoDU/J75gAoo1Xw6N wHaEe2kbM+UiltiO0JIgYS3PIUOyj8/p8cb4fxJkOqf5CYhiOK/sVgJL4bNEdK36lKWm Do36EAxLI7WhFMAuHg41vlV3zIn5th71zojhqj7WE/aaN/Fy8ruoWGcosnvUZcHTWdJw GWMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687169670; x=1689761670; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jmy3F/STWdRiL9bkqBfvVFLMvAXz5VhFeOVkXrx1CF4=; b=Zd+f/SDxjy0C02gPd11GMI5eP2bPUyi0NIP/DK8Cy6OjnD6l/0VYzbHvLiC/ywUEcW m4mJ+JpIWUy3pXfj1R3dun7xddjdu7TpSnL0Ly6j039H4M2fAzQ38zD+QpLv/hCkJAPc y01QMwiLklIp2npdd0+KEC1tb/oieZXsO5xz4JhXcAzVCFfKjMnc1DMzuoGG+6u2mBiX CHBagYZiQe06T7gAaxyAIqNhM32FQSQXazwlAVpZA3HzWj49m5BPoTmO5ykgbq0w+oU9 t3cmjXeCVOIctb0qW5bhdA/PcKaM+5WgL9bItgsmOTsg6EWmGegH46F7Jb2kBSSmiQZs GCMQ== X-Gm-Message-State: AC+VfDziKVy0ZkvAz7NHJLoaK/5bjZkCT3xNwbMORevWTIpEr3sW+Fx8 ZzZpGR8xEBr1c78TnEbGmn23HQ== X-Received: by 2002:a05:6402:642:b0:51a:5ebe:4ab9 with SMTP id u2-20020a056402064200b0051a5ebe4ab9mr920088edx.14.1687169670039; Mon, 19 Jun 2023 03:14:30 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id v24-20020aa7d818000000b005184165f1fasm109431edq.5.2023.06.19.03.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 03:14:29 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Lee Jones , Rob Herring , Conor Dooley , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: mfd: samsung,s5m8767: Simplify excluding properties Date: Mon, 19 Jun 2023 12:14:24 +0200 Message-Id: <20230619101424.25897-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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?1769126911957720624?= X-GMAIL-MSGID: =?utf-8?q?1769126911957720624?= Mutually exclusive s5m8767,pmic-buck[234]-uses-gpio-dvs properties can be written simpler, with half of the lines of code. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- .../bindings/mfd/samsung,s5m8767.yaml | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml b/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml index 10c7b408f33a..aea0b7d57d04 100644 --- a/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml +++ b/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml @@ -153,29 +153,18 @@ dependencies: additionalProperties: false allOf: - - if: + - not: required: - s5m8767,pmic-buck2-uses-gpio-dvs - then: - properties: - s5m8767,pmic-buck3-uses-gpio-dvs: false - s5m8767,pmic-buck4-uses-gpio-dvs: false - - - if: + - s5m8767,pmic-buck3-uses-gpio-dvs + - not: + required: + - s5m8767,pmic-buck2-uses-gpio-dvs + - s5m8767,pmic-buck4-uses-gpio-dvs + - not: required: - s5m8767,pmic-buck3-uses-gpio-dvs - then: - properties: - s5m8767,pmic-buck2-uses-gpio-dvs: false - s5m8767,pmic-buck4-uses-gpio-dvs: false - - - if: - required: - s5m8767,pmic-buck4-uses-gpio-dvs - then: - properties: - s5m8767,pmic-buck2-uses-gpio-dvs: false - s5m8767,pmic-buck3-uses-gpio-dvs: false examples: - |