Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp213958pxv; Wed, 14 Jul 2021 02:14:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2mbRDz+1ALdScSnfAo8LRP4qFrWkGCMjil//81yr/MfWbo69BBaxjblQ62HrHl8vYRvy7 X-Received: by 2002:a92:dc87:: with SMTP id c7mr6398832iln.306.1626254043727; Wed, 14 Jul 2021 02:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626254043; cv=none; d=google.com; s=arc-20160816; b=WI+pi6G6f6DWHUmW26DZCH9pakaURmEUtXEqJ3edQ7PBxtudrGpNcpB5FboXrCecu/ WyAjHYxt6V1uqH8xpZpLjX6dz5uZqvzNam9/88MXpQG5zusZIsjt5fqFimTZje2+Eml7 smN5P59rMp6a69WVmFsTjyI0hZw4DFK8BTUF6zczeVuJlgP4QlMrf3goalY12fDS+BMb VeA5C4PEc+cOgr6MNI4W3I/zbpQF2WKzvG5jKAbTC+GxpjYsVX6Iu0WK7JrKjDFQOLXH TnxGy5sbrYnKChStVJIcVDvoQrUFO0f5knbXKUIus4Xupw8YQaDBShSGpUxbOMZPHRE8 8wBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L1L1u3rZ6KRApA9VZEguAw6BMg6wCkuTuuQYQ+En76k=; b=dZJ5iDUcYFWmP3xHMlAN5h6cZvHzx35l2XUUR9uuU+lBpdtzDMZKgSiOwkhORL0qNe vl9vqujq56u03vR8TD0KARW5kf9ojLZ3fXvBClLVG5rCVb0ehLKYxO8bzm2Ga1RMZWUc z1mCc+STcPycwNIamqW15a3RUG7ldPqClXiV2E5sgxErUqG1HmlXXsfyuAMxtAVsVShu Nm4DpAKJImTIZ/dJ9d8CIPvCXHTTsx7TBy7arCeL9CGo2JmXUfChGeSV7xQ79Yw0pSOV ctFGlbGyi380/w/8hmVcAg8YhnhRSAwssjJYKviXpV8hTYnUIESrf0Jg+psfAXHW0oDY rJQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S9cMCc2c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si1840311ilm.75.2021.07.14.02.13.50; Wed, 14 Jul 2021 02:14:03 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S9cMCc2c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238443AbhGNJP5 (ORCPT + 99 others); Wed, 14 Jul 2021 05:15:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:46722 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238141AbhGNJP4 (ORCPT ); Wed, 14 Jul 2021 05:15:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 67D14613B2; Wed, 14 Jul 2021 09:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626253985; bh=CvgsRWOvpdhYc2CPuXHiO8KmPrKQY0raxwB2Nd36tUU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S9cMCc2cJBYPljpqMDkwoetrYHG5ivgwEK3JamQWYeAbDJGM6pDI6geQtXLn6iLWI LtFFNdzLE5qA/vmIK8FGCQdACeYh+9FLzcvmZhvGEFyMa6DFPmr9Bf4vUv14EhuVcD 7kxs3zSsAkiKK5vE+CcHeGj9GuJrqiLYMd0tV52JTcnhfJJoEjA/++bQKbgl0PgzC1 QgD6CJFFOaTQ1u3NUExFmZOm4InkPwlQt/aM46P2y/mnEWdxFcvw8XpKgyOB1jEciF lNFHN/Rws+ll0HkIstST5wEK8Z6RV8QvLd4oB5TFNoyB+KKcEORmJsqAwn+UBK9UVC l15QOggRnoybA== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m3awx-007q2b-Aw; Wed, 14 Jul 2021 11:13:03 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v13 6/9] staging: hisilicon,hi6421-spmi-pmic.yaml: fix patternProperties Date: Wed, 14 Jul 2021 11:12:58 +0200 Message-Id: <223da345b9f27d5e8f439b7d0594cb0128edcf16.1626253775.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 a2963bea87ea..b06131504d75 100644 --- a/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml +++ b/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml @@ -41,6 +41,8 @@ properties: regulators: type: object + additionalProperties: false + properties: '#address-cells': const: 1 @@ -49,11 +51,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.31.1