Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp280635pxb; Thu, 17 Feb 2022 04:06:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9NaculbHmCPGBqX9zShHRspGu9Akq7nHEwI0pbCcX7z1Bto+FORMqFfRJWumpY0pKxSfx X-Received: by 2002:a63:541c:0:b0:34e:4e9b:c370 with SMTP id i28-20020a63541c000000b0034e4e9bc370mr2213196pgb.359.1645099597454; Thu, 17 Feb 2022 04:06:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645099597; cv=none; d=google.com; s=arc-20160816; b=YKWHDw6zwilZlVGmIJ/nf1nGyFv8liVYFAXjZp9xmUjmtgjwlTZvFHp+xHzFXICWUB wVGVdcPGVy/q3SsIYz3E5lFRFprevna8exrEizU6ThTRJV/5cT9jX9T9Vi1ES1vk+Tul O1xTiJqNhWKFSP36nsrvgwd4whO7FDtr1kqdEvZU8erFuC2YYtFIGnrJD6FzOIykjvQK Q2MKAjKuC23reVL29L6euA246IblDI33jkyhtBA4Abv/CKXXSU9wg6vNB0PzZlT7vpXN ZBzZe9bQDA4j4Zl6rM/0Kxogk3qV+QlHHzJQQ6ECnVZXf/JQvSGkGROASyb+UVEPrWQt C5UA== 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=nbvCasmUFqvTSL2/pps15VXLcbVxmyd1SHRFolaNqP8=; b=fkhY2Yv2EGzm/r1iQ4gAITSf+Y0aZtxFsWPS1L/67TLgrxPWcfIU+xdTp99PLj3jFs cRsZ8uNH4TOhy6ARFXCioWn+2oAmI0DQVkgLsCgWn8V+MPv6X2pWAJXSSBELl+joF5fQ Ib3mqh6DUexeajvS+rCBzbF2gg1LBQ49wEL4jnzaquJ9aSP0QYP9ApQOH4TCz81xLGbz OqaNCdFaqjIX1z5sVhEa8rVkPLVF2QFI2FdZ7RfN2/gM3y4LR8nIb42a9Ce8f4VsQpAl vmZJ5s27Hxg2eQN9bC4ax3H+ZH1EBOprXtjmbC+4haOGFHE+0dGfUvg1a375Rt2VfJ4l 3AaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sylv.io header.s=MBO0001 header.b="Cb+b5k/E"; 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=sylv.io Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc15si9233407pgb.180.2022.02.17.04.06.19; Thu, 17 Feb 2022 04:06:37 -0800 (PST) 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=@sylv.io header.s=MBO0001 header.b="Cb+b5k/E"; 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=sylv.io Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239128AbiBQKZG (ORCPT + 99 others); Thu, 17 Feb 2022 05:25:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239015AbiBQKYi (ORCPT ); Thu, 17 Feb 2022 05:24:38 -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 543A1279093; Thu, 17 Feb 2022 02:24:19 -0800 (PST) Received: from smtp202.mailbox.org (smtp202.mailbox.org [80.241.60.245]) (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 4JzrXd5VH7z9sTX; Thu, 17 Feb 2022 11:24:17 +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=1645093456; 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=nbvCasmUFqvTSL2/pps15VXLcbVxmyd1SHRFolaNqP8=; b=Cb+b5k/E/wvw4yuJsBjyZIkinG6PnTSn0HUPUoHFvYVAcoOXIGO6xHDXe9eLVQ4jEkwstt jWxwfLFfJl6pCieYQA+eG76s3r3y6WwSlVh04h5Tj99U1yJl/0NsZLZklZdO6XUfITqmcK Nhle+PTGB3Hcye3jSHIJoa+BuqpcZrxwCBoHo2MKwukB6tLtiC8IOiZA0sn3Bi6GVgalIj Krp6505oObvHIwV8tGNesFIUywxmSe0cCvnKRYMCPNnEsW9cVCfzKtQsknd0I8SND4pfkz 6Zzqem7G4+0UPR207J7mZjpOUEfclDdGZ6/+Vcoy4lbq9aY93vYXWNYnxY0RIg== 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 v1 1/1] hwmon: (pmbus) Add regulator supply into macro Date: Thu, 17 Feb 2022 11:23:49 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 optional regulator supply into PWBUS_REGULATOR macro. This makes it possible to define a vin-supply in DT. Not defining a supply will 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