From patchwork Thu Feb 17 10:23:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcello Sylvester Bauer X-Patchwork-Id: 12749717 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95BFBC433EF for ; Thu, 17 Feb 2022 10:24:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239180AbiBQKYo (ORCPT ); Thu, 17 Feb 2022 05:24:44 -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 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@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"), \