X-Received: by 2002:a17:90a:9ec:b0:1bc:50bc:e058 with SMTP id 99-20020a17090a09ec00b001bc50bce058mr2409952pjo.183.1645507407246; Mon, 21 Feb 2022 21:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645507407; cv=none; d=google.com; s=arc-20160816; b=EF3UzW9bl46/7+kIhapbNEHfi18mchI/cOoGIy5N4Q0IDcTyOy4gXxf6REgkWZNgLx L9cc//fEP+EBNxeWMv6jAyTdViW0CCjSizsdCPQoXSlPiIzIj1bqK6HYP/Gr9FQ5V+uW XBn5VFG1DJ37l1U7/oQnOeMA5fwzCAOfnj83fi959fb4O+xt0v3npVpLy9YA1VIdZcf8 zJCD6bp6cAsBT4lDxU5RxymG2qrXoq6j1sAXzCnOJIe1NZKuzx+jvpk6sqdUCHoMvOEi TF+8bglnkrnfDjyfvrMj6xfK2Fo6HbgiFTuMifSIGWnZyk+SpJrv6UclH6BnR1Nx0nDD M63w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xNUFNxKWHKbWr0EwyJqT3Z9MfYdoa38UoM5TsJ85ejU=; b=UYcywl74YQA9QPfJUCThpkaYthqstzefDnIBANpSNyLMwuSGImLftypfKtOWg3GtA0 L2H648Yq//O2D0x238Je9cQus0PDhrFJU0JeF2IVPSOw7GHMLnTKMmfJkNjXDijR6lYI hvfKcM7w4O8M7k9B3cKByEPTlKlAyO73/aF6st3wSG5Nw4j6xss+G1mK7osvpsTZUFpp ULz7yZ7/r23OenWlxRyl/d2quSZmlKJ5Zl1sqTmIWKTli76lhe5wz+4RMuOu47mGoYTy gh2pI6Or8becqvkOA4EUixHJ5/8utMYJpGu1srtIMXbU8UR6dd5s0QYEWncbip6KAzIJ bupw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sylv.io header.s=MBO0001 header.b=PmGbNw1z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sylv.io Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u16si22142114plq.346.2022.02.21.21.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:23:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@sylv.io header.s=MBO0001 header.b=PmGbNw1z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sylv.io Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6163FDF88; Mon, 21 Feb 2022 20:54:20 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356109AbiBULV7 (ORCPT + 99 others); Mon, 21 Feb 2022 06:21:59 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356143AbiBULUd (ORCPT ); Mon, 21 Feb 2022 06:20:33 -0500 Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAB0EBFD; Mon, 21 Feb 2022 03:10:19 -0800 (PST) Received: from smtp102.mailbox.org (smtp102.mailbox.org [80.241.60.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4K2KMt2rCSz9sNq; Mon, 21 Feb 2022 12:10:18 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sylv.io; s=MBO0001; t=1645441816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xNUFNxKWHKbWr0EwyJqT3Z9MfYdoa38UoM5TsJ85ejU=; b=PmGbNw1z3YDza6ab7Uajm4PuJYZv2NNYEoXs3p+AsvflTUBxcgt/Judnu1EYPD2/lY+GMJ 6pzvTLNxF0qRQkLI/ZJufu253VNu4xoLZxfyZQ88mPYBeV332VDgPePs3tqecw9reQ95uy VnI86Sw8TCxCLvfck3a0AeV1F754OF3aSfudiAulRM672sQWjB4DA12oUhj7Kf6bR8aVPZ b9u+ERnVKS2a9fpCZv7hTyG+kHppyhstKtZCNntf4GhObt+QTvYtHPYCoaQhaKkcW5VCPu L+3ysF2EZ7jfw9edAjwhYPWzcYv6Jru8KhqUmQMaxwp6yYLuqj0ahiKay84OnA== From: Marcello Sylvester Bauer To: Guenter Roeck , Jean Delvare Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Patrick Rudolph , Marcello Sylvester Bauer Subject: [PATCH v2 1/1] hwmon: (pmbus) Add regulator supply into macro Date: Mon, 21 Feb 2022 12:09:56 +0100 Message-Id: <58f2ff7b90233fad3d7ae2e9d66d5192e2c1ac01.1645437439.git.sylv@sylv.io> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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=no 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 Add regulator supply into PWBUS_REGULATOR macro. This makes it optional to define a vin-supply in DT. Not defining a supply will add a dummy regulator supply instead and only cause the following debug output: ``` Looking up vin-supply property in node [...] failed ``` Signed-off-by: Marcello Sylvester Bauer --- drivers/hwmon/pmbus/pmbus.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h index e0aa8aa46d8c..38f049d68d32 100644 --- a/drivers/hwmon/pmbus/pmbus.h +++ b/drivers/hwmon/pmbus/pmbus.h @@ -464,6 +464,7 @@ extern const struct regulator_ops pmbus_regulator_ops; #define PMBUS_REGULATOR(_name, _id) \ [_id] = { \ .name = (_name # _id), \ + .supply_name = "vin", \ .id = (_id), \ .of_match = of_match_ptr(_name # _id), \ .regulators_node = of_match_ptr("regulators"), \ -- 2.34.1