Received: by 10.223.185.82 with SMTP id b18csp3883wrg; Thu, 8 Mar 2018 17:53:39 -0800 (PST) X-Google-Smtp-Source: AG47ELv3BGbbjsC+ZBMiIWkNQjpJ4O+loiOBnT7EeK8pVJgHP7ujFMva3P6RBLG+nAIdKDBBm9pN X-Received: by 10.99.8.4 with SMTP id 4mr22893574pgi.289.1520560419365; Thu, 08 Mar 2018 17:53:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520560419; cv=none; d=google.com; s=arc-20160816; b=QN1Imb3xVeb6BJ24kkNH96UIcOL5urmvNXgdqfkeI3otrYZnqIWKBLjdGScN71zv6/ t8D4C0iAbaLWOMCrX44mqxlibWUb2tIwrzW4P7F5NvlaMVFrimjCtr/0ubxsl2ggcP9L SxbiVP5vXVNEEnK2OAiGCXliMer2F6fdkmXhTtoRDmY+FD68788+n5b4SBxNGdZG0xr0 oAUxMzE7wXFfyAGWGLcWd6CemY4nD8mphWltV8S50nejNIp17hMRXfllyKUaf5TDWIVd OEQz4ypOQ17nPNfe2nITWcWb4t64L6DsfnC1MmuNrRQcMpzVzmYQtgVrQ+k2n29K374s 9EkQ== 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:arc-authentication-results; bh=XESAkslWyKFUYmATx2Wym9n1kl90w78/MpxOrWqdfh8=; b=zhEd1xLSe6nGsTg4Z/wMYMcYl6pPKSAgC8tR1ZNx5UzYmqQRtUd03/ER89BJMbtFzS VxmZb3fQ4gpBePyLSf17aWELJFiKPyGpJQ1/hCrPo3w5TuKo6Tl0l2shUB3VxNwzYl8z vN6FJ/TSWFO6Y8lEaYZnWGiF/hYj0r+3uRNfRHbdUy54V/iauAgLlUGtwudF7w4yoJSn mqzqjxOSVl+gQqpGt/GAVfw2MA740DNgBYuWUZMh4SX6Uazl7nddrEzIGbBO+gOuT7NP lnMa/FYqXp0JxGybeL3nrRpylrpvYXy7MCjjqVOI9C5PwE4DbwUm9GiJ+GVN+vAIf77c wTnA== ARC-Authentication-Results: i=1; mx.google.com; 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 d9-v6si12757227pli.389.2018.03.08.17.53.25; Thu, 08 Mar 2018 17:53:39 -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; 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 S1752068AbeCIBwW (ORCPT + 99 others); Thu, 8 Mar 2018 20:52:22 -0500 Received: from regular1.263xmail.com ([211.150.99.136]:42173 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbeCIBwU (ORCPT ); Thu, 8 Mar 2018 20:52:20 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.234]) by regular1.263xmail.com (Postfix) with ESMTP id D0ECC3B; Fri, 9 Mar 2018 09:52:17 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 080A1308; Fri, 9 Mar 2018 09:52:09 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: <220ea8ca12fd1cb0be4b37239e0d6641> X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from localhost (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 235954Y13XX; Fri, 09 Mar 2018 09:52:14 +0800 (CST) From: Jeffy Chen To: linux-kernel@vger.kernel.org, broonie@kernel.org, alexandre.belloni@bootlin.com Cc: Jeffy Chen , Arnd Bergmann , Lee Jones Subject: [PATCH v4 1/4] mfd: syscon: Set name of regmap_config Date: Fri, 9 Mar 2018 09:51:43 +0800 Message-Id: <20180309015146.8297-2-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180309015146.8297-1-jeffy.chen@rock-chips.com> References: <20180309015146.8297-1-jeffy.chen@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: Modify commit message. drivers/mfd/syscon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index fc9ba0ea4e44..b6d05cd934e6 100644 --- a/drivers/mfd/syscon.c +++ b/drivers/mfd/syscon.c @@ -110,6 +110,7 @@ static struct syscon *of_syscon_register(struct device_node *np) syscon_config.reg_stride = reg_io_width; syscon_config.val_bits = reg_io_width * 8; syscon_config.max_register = resource_size(&res) - reg_io_width; + syscon_config.name = of_node_full_name(np); regmap = regmap_init_mmio(NULL, base, &syscon_config); if (IS_ERR(regmap)) { -- 2.11.0