Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp716798ybz; Wed, 15 Apr 2020 17:23:25 -0700 (PDT) X-Google-Smtp-Source: APiQypKbvt79GdG0lKZKuCNIPbSjk5V3lweLlsusCpX2kzsr+AAiPRNpaioHKid43D67fAPG4j6d X-Received: by 2002:a05:6402:1505:: with SMTP id f5mr25442334edw.208.1586996605136; Wed, 15 Apr 2020 17:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996605; cv=none; d=google.com; s=arc-20160816; b=Xl2sqdAhUfprHo13KUv2cLx+CL9qDDqsJe/1/3GlKNNX2u/dLTGEnIsLZ3qpy9uvhX L5mThwMz1W/kuDlxR5ATUi/Nv7Ph+5fghu9cyJMibVhcGc690ptreFtFSgOEFu8pidtR 2zmdmAkSQTCLr+tewAphX7BdFMaEJSqWk+6vWIfmfOii7ubLhc68W3mo9z/pEjITgWCO N2jUJOY1g+o3RXP99byGw2+rQGJOX03NKYAeXuxZZmLmQlBKbNOVnds1zMRS5G2RJ0Oi GUqld+WdSshdnTBjZ/CoId0AZBf+1jaRPcN01kXLFv1iysXv5X0V+l8m48/V9Lvg44lf 3h4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=YVnJHMzMX4zea+T2RwyrRODXUlwOsF2FdlsCZVHk+oo=; b=VNP4BMJx/n5wQ7zzrcdnrkIHD7u6uxTvMlcwDUgydTC3fLg/pAlEci5LyDzH1R2UnZ 5o60Fn1H/bEb1HGuq/HU6rbB8T0S5H49tmTRwIdFM/3DFkjIn/F0yxWowRBuSZJO1SrZ gsN8GaM2hGlQtSTRxVytOeLbRLh00n2suGTkHECBXPFIVmZr/bZthb+dSg62JE2k4EBk 5dgcbi4skV2ZfLewBlsLEHymx3B2JHwTYM0A5UBdiBRJ+gRp0mD2JN4jM8mwRtWEYSfc XN84qOZttxEfO3NkB+ja2r+hkYXOiyV2dqL5CdJBAdtd9LPBp9MNsE3WM/hFhim7EY85 RgQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kgYC/Nzu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si10375740edm.32.2020.04.15.17.23.02; Wed, 15 Apr 2020 17:23:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kgYC/Nzu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1416018AbgDOQ2w (ORCPT + 99 others); Wed, 15 Apr 2020 12:28:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1415915AbgDOQ2M (ORCPT ); Wed, 15 Apr 2020 12:28:12 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16755C061A0C for ; Wed, 15 Apr 2020 09:28:12 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id q19so4342660ljp.9 for ; Wed, 15 Apr 2020 09:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YVnJHMzMX4zea+T2RwyrRODXUlwOsF2FdlsCZVHk+oo=; b=kgYC/NzubYiLAa6kaXJ4bjDzEtBuG4wQ+FjtTCgn9wj25YfXSiFb/4XypzMVgiuvnB v6FwIp8E0EtRxWKEWEjFCgdimullb21rQl/7OFdqhwvDwYA1RwWXtH1tJa1W0k38dqxp VYFKX8SXqzlIlCJouxs7cvVdrx80p6dQdVvAOMlN52FrkxxSAY9wJ8v2BvWgVuhXGCvh +dNtiAA8Olr/D02x3XYacqD3kAiOB7sCEWRHq0VUiqLf37SLmaixRE/g3Z6L4yo5P42r DBUnhBLHOJ5zyVGo3L9RKpNtwUcGlBAoPNbxL9HIYb+GA9q32gKFgP1CkorAJnEe8oPp WMQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YVnJHMzMX4zea+T2RwyrRODXUlwOsF2FdlsCZVHk+oo=; b=pN+u+Qd1J/J/72Ab/Q0spwcZbHxgpUqX9crj2JxXZXBDDFrhJ+WMNjfOumzzSwp8JN v7edoodKmCfCTYoCpUrnkIEClgmw19jRm2/D71PswWFFh5gut1H1Ar1NA+6+1o6sO5Kj EcEusSSqU7ZkipLtxqazLKH03QJEhsE/cjTrmXEWC9rn20hJCJTrnIkHLWh6RYIPiyGC 3qTHNvZwXAEAhkEzmnoE/iVFNsx04auOtvADRBOr/hp31pn6tlAXKe2Bx296qaZfU5OG JcRbb5MpCPBDCNd71bM9WHO2qruiEil5T7LEnUA/N7PVEAOQXjrJsv8PX0DX7kWiqdAl 0bHw== X-Gm-Message-State: AGi0PualGhQPB/Qr+PHIpn4GM8fkbhh4ad5PkkWEgiKvRqwtzafUHXC4 gsFUxuCIU52+ZcopUUptN1XoSlky X-Received: by 2002:a05:651c:102f:: with SMTP id w15mr3601309ljm.5.1586968090308; Wed, 15 Apr 2020 09:28:10 -0700 (PDT) Received: from [192.168.2.145] (ppp91-78-208-152.pppoe.mtu-net.ru. [91.78.208.152]) by smtp.googlemail.com with ESMTPSA id s10sm12089253ljp.87.2020.04.15.09.28.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Apr 2020 09:28:09 -0700 (PDT) Subject: Re: [PATCH] regulator: use consumer->supply_name in debugfs/regulator_summary To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org References: <731a4b299c6ae0ee9d8995157600a3477f21a36c.1585959068.git.mirq-linux@rere.qmqm.pl> From: Dmitry Osipenko Message-ID: <606b7ddd-0c9b-2ba1-f873-8507377fdc4e@gmail.com> Date: Wed, 15 Apr 2020 19:28:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <731a4b299c6ae0ee9d8995157600a3477f21a36c.1585959068.git.mirq-linux@rere.qmqm.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 04.04.2020 03:11, Michał Mirosław пишет: > 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) { > Hello Michał, This is a very nice improvement, I like it! Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko