Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6174798rwd; Mon, 19 Jun 2023 03:35:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wdDO1BEaghegZpw6F8J8/T6sAaNMcop1tugI0oXnUXJ6My98edx0KcvayAgEXrsAKBLIk X-Received: by 2002:a05:6a20:7d8e:b0:10b:e88f:598f with SMTP id v14-20020a056a207d8e00b0010be88f598fmr13328018pzj.51.1687170924389; Mon, 19 Jun 2023 03:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687170924; cv=none; d=google.com; s=arc-20160816; b=O52aEiR6OVhX61lVVdUmL0B2okxDsKmSTEvO+A+c1PXgGPbf4Riz3lu8V7GKmnuz9Z 7Mnbl2lG+pDS83bnwOqODWgEy8IcQmJ5ZJfL7a1DnN1C3LVJMiuvktPW8+YHCKmpwGDW O0ehVg6osyQioGwOZmn3//1xs2PIf9bT2I/G/lsyyJ+5vK6Lmu5S69mDzR0XuhL9tXYK KHT2D3pvJF2U+hR051UplYu4Ul4wxs5s4P9ad4ULBSLjT1QGL1u/naOyIfjyuZWQn1s5 48Js+ihi7N5hDSvGD4ukm6tGMGsq7cDtBGEcqZA8qDibAJtKD1mpVKAid4qeOzst+fMa aokw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k69-20020a638448000000b0054fdd971a59si3738389pgd.890.2023.06.19.03.35.10; Mon, 19 Jun 2023 03:35:24 -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 S230428AbjFSKOf (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 Content-Transfer-Encoding: 8bit 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 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 --- .../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: - | -- 2.34.1