From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32B372FAE for ; Thu, 9 Sep 2021 11:47:25 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 5885B615A7; Thu, 9 Sep 2021 11:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631188045; bh=L/kYqinvZKgiNpnF/JFP/OdfPQwTZRg8Ij6fzHTyWUA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sxd748i2dMGfwyJtqEYAGLNy+AGO6+CaS0Y+DCdmHsAixSt/pLeTvPRQPAmM9KXDB 6ZJnfLn3yuUeR0DZOukvQXc7ffu+2qXleWnzALKsUd/XHePNNBj2Kb44aBZPFvljtA HL6LQZJHx1sxPIo3RZedZYLUAPpsZvU71OX/5d2Rk/2zEbai+RyOxIy16sdYv33NZk pGYGbsPsbYAGka/L9H6qy77/QgxLPaR7KFbCOM/wW2PGtXe8nWZmzzbsm/fu/yNMLX Id+j0oJa85Dxjero6kWckC30ervzlSiKG6YUZOvsH334+oPRzMwnHOM2LHizSocs8u zOFfN0XfckB1A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mauro Carvalho Chehab , Greg Kroah-Hartman , Sasha Levin , linux-staging@lists.linux.dev Subject: [PATCH AUTOSEL 5.13 038/219] staging: hisilicon,hi6421-spmi-pmic.yaml: fix patternProperties Date: Thu, 9 Sep 2021 07:43:34 -0400 Message-Id: <20210909114635.143983-38-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114635.143983-1-sashal@kernel.org> References: <20210909114635.143983-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Mauro Carvalho Chehab [ Upstream commit 334201d503d5903f38f6e804263fc291ce8f451a ] The regex at the patternProperties is wrong, although this was not reported as the DT schema was not enforcing properties. Fix it. Signed-off-by: Mauro Carvalho Chehab Link: https://lore.kernel.org/r/46b2f30df235481cb1404913380e45706dfd8253.1626515862.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml b/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml index 3b23ad56b31a..ef664b4458fb 100644 --- a/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml +++ b/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml @@ -42,6 +42,8 @@ properties: regulators: type: object + additionalProperties: false + properties: '#address-cells': const: 1 @@ -50,11 +52,13 @@ properties: const: 0 patternProperties: - '^ldo[0-9]+@[0-9a-f]$': + '^(ldo|LDO)[0-9]+$': type: object $ref: "/schemas/regulator/regulator.yaml#" + unevaluatedProperties: false + required: - compatible - reg -- 2.30.2