Received: by 10.223.185.116 with SMTP id b49csp4230552wrg; Mon, 19 Feb 2018 13:44:05 -0800 (PST) X-Google-Smtp-Source: AH8x226crnW7CCUt/dn7bGZN26wyohp1lgp13G3ZCgTWuehx3GJwSxNydSestSJ4DkHFdvG1hCVY X-Received: by 10.99.38.67 with SMTP id m64mr13283490pgm.2.1519076645583; Mon, 19 Feb 2018 13:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519076645; cv=none; d=google.com; s=arc-20160816; b=jSE4ga/yrRu6EuuTjTjeYCD8iGfCc9smaA/VA0+b4f6NayYBZajT6KAwjAzZ/+h/x4 NYwbnXbj40QMfWkTOp8HPgSDwns8+xn8aMj3ZV1fF3bI2O6Zr+6Gylcczsi09Ihr6Huo hoBysQC0BoTWHGtyyRtsMtiAnbDLINnRAEwOlK0QGuHkpOSg+tMHKI7qY+rT1TfrK9tR w8NttqD3WhF2da1i9Cd0qZx/AskalXfyLYVMSN5jsIqpQ/6ugaUuSNP2H3wG+f9dtWKw d2EJoFlZd0UGEeB4LQbnrT5WSqUNf7mamgiGmK/OO72BKzfekxNHIEhaDeBZrXoftJZx 29hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=BhPDIN0c9F9boRgQiH5d+qiGsjLmudUhlqPZ3+YITEs=; b=gjcbV5hLgKRczKdFPiOVtdXDucjEAg9+EuvcUkCw/zdJgi5EP6pIzQRPScYTszwMbP jmrRiykVtFbULryTYGdKnqEZBzVkK4l6i/BfWqjd6f7fbRYsWGQEBN+lmoj2B3hV2Euj ZJqxqPqIEfLAuAWfvMqKSd/WBKqO0hMwmyAFAtk2toEmXtq+lgaTs5PnJlSxGoF0dct1 ymkU0jo038I0imGXQDjM5Vd6F1SNpW55gzxjalj98ysf6usPX+bqMip85bp3uDRS6LZf Q7+i8luzyf9FxwxzsxjjBIVxtAxxPlKzGIb1ybsHuDEbJbysnWSTBQ+HZ93ho6vmYT8G V7vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=m6HQ7Gvq; 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 9si1777762pfi.351.2018.02.19.13.43.50; Mon, 19 Feb 2018 13:44:05 -0800 (PST) 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=fail header.i=@lechnology.com header.s=default header.b=m6HQ7Gvq; 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 S1753850AbeBSVnJ (ORCPT + 99 others); Mon, 19 Feb 2018 16:43:09 -0500 Received: from vern.gendns.com ([206.190.152.46]:33072 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753648AbeBSVnI (ORCPT ); Mon, 19 Feb 2018 16:43:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BhPDIN0c9F9boRgQiH5d+qiGsjLmudUhlqPZ3+YITEs=; b=m6HQ7Gvq3pAqfWqSdPfjcJcj0 cpzBSxpCPVaHEhFfl/rMYgh1pc+iZHln8mnZOKCjOzyeCam/W7bFiQ8ZEg2hiS4GXVezBFnEc5EUs gqr4nRMZmSpbUdQSowj8tN3496hNFYGtiDJDbqkZPC5VaEzSIXxzOcCrnoF6dRjwkY7WT4QwnDIKs /MC1XzTRZn9HDnx3wb7TGwBpfoWIAWh4RTGpGJgZBwEYeHDXSWyMUhKgQCVxrFYQgp+qRooHsHYD6 M81EIUaPOjStwSARxuq0NEjy/6z+c5uf6PAW+UcegC7EhIyRi1J8yr9wwnPfgoJ5AG90Ak4m+2cJn qzZh+sCHQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:49808 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1entBz-0049Ue-Eg; Mon, 19 Feb 2018 16:41:47 -0500 From: David Lechner To: linux-kernel@vger.kernel.org Cc: David Lechner , Mark Brown , Greg Kroah-Hartman Subject: [PATCH v2 2/2] regmap: use debugfs even when no device Date: Mon, 19 Feb 2018 15:43:02 -0600 Message-Id: <1519076582-7687-3-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519076582-7687-1-git-send-email-david@lechnology.com> References: <1519076582-7687-1-git-send-email-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This registers regmaps with debugfs even when they do not have an associated device. For example, this is common for syscon regmaps. Signed-off-by: David Lechner --- v2 changes: - none drivers/base/regmap/regmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index ee302cc..f5fa1dd 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -1116,6 +1116,8 @@ struct regmap *__regmap_init(struct device *dev, ret = regmap_attach_dev(dev, map, config); if (ret != 0) goto err_regcache; + } else { + regmap_debugfs_init(map, config->name); } return map; -- 2.7.4