Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1048808ybb; Fri, 3 Apr 2020 17:13:25 -0700 (PDT) X-Google-Smtp-Source: APiQypKZph1SKijMoLg2paPcAtiIJojxVKeeKcybIih6CNfvhN4tv8K2dyY2z/ZtyIhXU+0RzKR6 X-Received: by 2002:aca:4d47:: with SMTP id a68mr5498488oib.56.1585959205110; Fri, 03 Apr 2020 17:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585959205; cv=none; d=google.com; s=arc-20160816; b=OsqzV6Bka7zHrCOTgtBTG5JQnXJ1H2Kterqx99WrxESFj9cgwhQKN1TfpPhHe6BfXv ExLmfPJShjc5Iz1Iy5alnOE9ZxZbQyxKTFsDIOaP3M0sNPfsc3WEtpzZ6hlCUkjyhT0E SkyG7PEgQgMcJVOi5OQ10btNKNaWr3eST7yuTYNbI/HWNO4zdPi8ZNnS1lbCdYzCoLeC uR6Ab4I/jagfs1lJgB7j6zinLOtILM7GxTZpN3KVL85ffi9P525LaeK0ygXFURD1MWHD oQF7aRj0sLxuR/rzJuWZimhN4MULz1geoj4B6Z6wsjNKq+B/aD39tLgRLIdAyX1FblYB Objw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:content-transfer-encoding :mime-version:subject:from:message-id:date:dkim-signature; bh=bBTsOJ/WAxlyq7FiHvMvDMkaOY8YaaUSxjQnn7KT6hc=; b=lJ8wDe4npJi8BcTrOCjBYr9+ElXTlqYWWHUooL1Uwb25thxwSKWuW0qhFoSKgJQMi8 Sg6Nwwoe0fIBXOrqjClfE2sEzTTB+9Esq9ojhZ22ogCU552cJRq2eUMHOflYg9bxRK+t NEib3QR/bcm0ZFl6qhveP6f4Zh5KLHZ7A2PZ5M2R9bbvri4dFQKE6NfGrd7twVuMa7ul /baMAzkTd40rJzUeI5b2e0l7ykG8Fc566c0F8YVogteFXcBsCeA+suXebbm6rp+uHKvL bPgXb5O9lc19h24WpThaosHjWcncBS4eDCFLCB/kaW6IMZFMEDFQHQ4nDaCxWpmpWgVK 50PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=fBO4pc4W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si4118004oih.253.2020.04.03.17.13.04; Fri, 03 Apr 2020 17:13:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=fBO4pc4W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726208AbgDDAMA (ORCPT + 99 others); Fri, 3 Apr 2020 20:12:00 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:30304 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbgDDAL7 (ORCPT ); Fri, 3 Apr 2020 20:11:59 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 48vHKn5MRwzBh; Sat, 4 Apr 2020 02:11:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1585959117; bh=0Pswf+vz2pxT8SBuz/XAQm33cUJ1w9kVwcd2epzBoxE=; h=Date:From:Subject:To:Cc:From; b=fBO4pc4WoebiKwXXD6pf97eoNMjlBNYtJcsW7+ROf4HeJEXoHhmq5DR0aThh4WfU+ 9HhsAbvp/I9mjsMieC6EvFeoKITIyQm2iYRpPP6fw9KtQkmrQY62lPhEoyOZUvNyEf GEIE0XGOnMaQBms7fJ2cKo+iUSjLXucKjjjmS1a0JPU5lXrkpGZoPfQYr4+ikBYDos UvFDqE0/FY7R5HO8tb0yk+PE5lIvXYES4t7p/oJmDOMJ46I65cwf+xP5Dob6ceoFwe V07E867rVPctfWZ02X31n9+nMY/JUqz/8PnZexuSRUANpxNSIoa6Waany4Iw7FhfXZ R9sZgoLzC5+tg== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Sat, 04 Apr 2020 02:11:57 +0200 Message-Id: <731a4b299c6ae0ee9d8995157600a3477f21a36c.1585959068.git.mirq-linux@rere.qmqm.pl> From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH] regulator: use consumer->supply_name in debugfs/regulator_summary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: linux-kernel@vger.kernel.org Cc: Liam Girdwood (supporter:VOLTAGE AND CURRENT REGULATOR FRAMEWORK), Mark Brown (supporter:VOLTAGE AND CURRENT REGULATOR FRAMEWORK), linux-kernel@vger.kernel.org (open list:VOLTAGE AND CURRENT REGULATOR FRAMEWORK) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make it easier to identify regulator consumers when consumer device uses more than one supply. Before: regulator ena use open bypass voltage current min max ----------------------------------------------------------------------------------- regulator-dummy 1 0 2 0 0mV 0mA 0mV 0mV 1-0010 0mV 0mV 1-0010 0mV 0mV After: regulator ena use open bypass voltage current min max ----------------------------------------------------------------------------------- regulator-dummy 1 0 2 0 0mV 0mA 0mV 0mV 1-0010-vccio 0mV 0mV 1-0010-vcc33 0mV 0mV Signed-off-by: Michał Mirosław --- drivers/regulator/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index c340505150b6..ad143004c32b 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -5496,6 +5496,7 @@ static void regulator_summary_show_subtree(struct seq_file *s, seq_printf(s, "%*s%-*s ", (level + 1) * 3 + 1, "", 30 - (level + 1) * 3, + consumer->supply_name ? consumer->supply_name : consumer->dev ? dev_name(consumer->dev) : "deviceless"); switch (rdev->desc->type) { -- 2.20.1