Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2279158iof; Wed, 8 Jun 2022 01:14:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz22uAz6QAfdvCJORo29Yx8grpEg+sJKIQ03FeL1cIZucyhDBnqMu69s4MIwW1ZgjvrPU08 X-Received: by 2002:a17:90b:350b:b0:1e8:46b9:5bc5 with SMTP id ls11-20020a17090b350b00b001e846b95bc5mr25982874pjb.100.1654676086102; Wed, 08 Jun 2022 01:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654676086; cv=none; d=google.com; s=arc-20160816; b=Mg1q+/2ViM5GvpD+79Z7OBnPQDRcqW9YeQ2HfAQ5YpxeH5SgC2uJIAUmwuWNyWgkMP mMSN34g7dExiY5svwsVLM3YhEViEVdFrqEHDaiyj6opIifLMhfqSoO+yKxSNSzQuxar9 zknZUWAvq2Rgte6VGLQwsuLfFuepWUPMj7aF2PwtFMfUySSbUoJW7iuV7hrUo7ajGDfd L1CL8bsZB/SBJpWd97ZxLy8RNgvtttMYxgr+8srLRVBWG8ngI09yM5INI55qJfwaEJbx 6fHCHgSu/ZFtjcjdaZ3xBzn9u7AakQdoeQ1lwPGvZkXa0HYlOjr/sbFRu445NrUY6xYP bURw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7tKqIpMVgXgKlbne6Dxm5dScmQzaZJt/Sk21VJCmn2g=; b=nw2yWYsHHP5P3S57P5N53g/TqOJTPMyvA1lQmIe4w3mBCo8eOg5qheUlZNXB/bicSo Q0zU8ONGwE6yQd/gYa0RQXaqep9F+gVOrNi0JkV4xMiJATtLwaXCB2k/cv2Ub9ckJVJ2 nrIM78Iu+p+FuVm+aCGh32P7g8IQPJRoWbMBdjsMTDP7Iz+ExBys1e3OuaIyPsueaM7f HDiM0LkFSG0fXI3b8t5A32MbV8LnunI0eg7BqIvKbWwLFIOcVB38bC2ZlnvoNaxuIFtv fG9L7re67L6P57gW+W1VxG4igPlRN4oEh4NcHyWl4HbfflltEm4NeBWd/6biNdEqKLMX gRXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yHfonhoj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m37-20020a635825000000b003fadcc14015si28450136pgb.15.2022.06.08.01.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:14:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yHfonhoj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D308738718C; Wed, 8 Jun 2022 00:46:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376427AbiFGUiq (ORCPT + 99 others); Tue, 7 Jun 2022 16:38:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357526AbiFGTmE (ORCPT ); Tue, 7 Jun 2022 15:42:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B5101B436A; Tue, 7 Jun 2022 11:15:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AF5DE6062B; Tue, 7 Jun 2022 18:15:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC066C385A2; Tue, 7 Jun 2022 18:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654625720; bh=cB/zmou4JNBatz0EsRvy0e6Im6lxkG/oKJCnqFwoMfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yHfonhojr2isCHQaLvu+Hhvan+UyhNpEPaU7oSae69E8SJkyMO7rl/3v4fqWPo0cr 2HjYbnDaGy2oGh+6Rq9o9EXmu8EqlmN4cYMZwyLiT9tM9aosH2ckTtDh/TUkKlp/C2 uOe/KYqjSzkW+iUk5CoMsMuYWY09y13dh4up9KI0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "=?UTF-8?q?N=C3=ADcolas=20F . =20R . =20A . =20Prado?=" , Mark Brown , Sasha Levin Subject: [PATCH 5.17 117/772] regulator: mt6315: Enforce regulator-compatible, not name Date: Tue, 7 Jun 2022 18:55:09 +0200 Message-Id: <20220607164952.497157138@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164948.980838585@linuxfoundation.org> References: <20220607164948.980838585@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 From: NĂ­colas F. R. A. Prado [ Upstream commit 6d435a94ba5bb4f2ad381c0828fbae89c66b50fe ] The MT6315 PMIC dt-binding should enforce that one of the valid regulator-compatible is set in each regulator node. However it was mistakenly matching against regulator-name instead. Fix the typo. This not only fixes the compatible verification, but also lifts the regulator-name restriction, so that more meaningful names can be set for each platform. Signed-off-by: NĂ­colas F. R. A. Prado Link: https://lore.kernel.org/r/20220429201325.2205799-1-nfraprado@collabora.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- .../devicetree/bindings/regulator/mt6315-regulator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml index 61dd5af80db6..5d2d989de893 100644 --- a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml @@ -31,7 +31,7 @@ properties: $ref: "regulator.yaml#" properties: - regulator-name: + regulator-compatible: pattern: "^vbuck[1-4]$" additionalProperties: false -- 2.35.1