Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4268522pxk; Tue, 22 Sep 2020 15:06:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxClhz5z8ffFtmGzILNNO2h/u0m4MwuRp9h8GivqpDePBDV0nNdZ2HzhRJ98IdhFD9u4wyE X-Received: by 2002:a17:906:22c1:: with SMTP id q1mr6942542eja.529.1600812417742; Tue, 22 Sep 2020 15:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600812417; cv=none; d=google.com; s=arc-20160816; b=a6xfeaTZKsjuehuYE5HrUFanCzcU4lDVfeLh3IYuFFCb0NISGw29tmD6vqyKksptaf kRSFru6Gry4SJ+NDopq0WPkvEwckfsJAsr27H8F0NLkGFzTPL46FNYHB+UAJlMd7T7DY xY4fX7Q5uIJ9czK7g+c3wkTZbj/0AraJifqM/2r+NjYzT8xRbee13w6yB1aCL7UdX8GK ur7TZsjEA9dLdI25kUHJBnTVwB5yqNLCKvJ7Q3DRGp2CJcQn/vVr0qlmiR1b+9FGJdPV djFAqcQvvPrGUXc0uu9MJWR5BQjPYJFIvw/+m6rw/UYPKQBXi7nTXp9V1Ev7WiTDqveP 5juw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=rM/B9BakHyUJZNVQSwabD9JaPVxM+jNpDiVkIVk/tQk=; b=s8l2B8xm53FySOUEJ/bh9MiVldkpIDXDx4pYmV/QvwqdJGqsuJw+NWNFkCB2P8WVOU vlPo1oE0wTzzkHdYzVI9YEj0IHL3jC+wIGt30IogC13C3btTOIRcdu8J9TjXRb1p/W4L nDHOa5+Jc6/XEAdNpU1RrBEfeSP0wsq52QEOyMD8Db/tLE/1DSdpBBwQXfzLN10rSE+x g57FvFdiRFQJkxLbrM05lcpDEDs+mMw0ueNI0FwV7aAkOeDWhykFueCI6tSAL3y3L3oU Dew4ZMj5ZUI4pn9D90Pmhtlv6lIMg60Cul2ErPcgdsQ3x+yEVgcOJU/SclUa8UFNf1Z0 ocZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Mq5xKOmT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr3si10126069ejb.358.2020.09.22.15.06.34; Tue, 22 Sep 2020 15:06:57 -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=@mg.codeaurora.org header.s=smtp header.b=Mq5xKOmT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726706AbgIVWFB (ORCPT + 99 others); Tue, 22 Sep 2020 18:05:01 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:23480 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726685AbgIVWFA (ORCPT ); Tue, 22 Sep 2020 18:05:00 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600812300; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=rM/B9BakHyUJZNVQSwabD9JaPVxM+jNpDiVkIVk/tQk=; b=Mq5xKOmT2gNC+W4h8+YYAzTpQmF6jD3HGIb0P51vLT+5m+MvEAptZft89JTU7ayON6782lqO vAb60ajTC2diRZnD7ai+1gJeS39j4MfRG2alWtzws7j82fpcSiLy0yYu3BYT9C0rdSEtwLjf iqeAWOGThm71YfQzwaFG3FCzkMg= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 5f6a750b48c378a4cbbcbdbc (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 22 Sep 2020 22:04:59 GMT Sender: collinsd=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C0E01C433CB; Tue, 22 Sep 2020 22:04:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: collinsd) by smtp.codeaurora.org (Postfix) with ESMTPSA id 22282C433C8; Tue, 22 Sep 2020 22:04:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 22282C433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=collinsd@codeaurora.org From: David Collins To: Stephen Boyd Cc: David Collins , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] spmi: prefix spmi bus device names with "spmi" Date: Tue, 22 Sep 2020 15:04:18 -0700 Message-Id: <1600812258-17722-1-git-send-email-collinsd@codeaurora.org> X-Mailer: git-send-email 1.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the format of spmi bus device names from: - Example: 0-01 to this: spmi- Example: spmi0-01 This helps to disambiguate SPMI device regmaps from I2C ones at /sys/kernel/debug/regmap since I2C devices use a very similar naming scheme: 0-0000. Signed-off-by: David Collins --- drivers/spmi/spmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi.c b/drivers/spmi/spmi.c index c16b60f..ec94439 100644 --- a/drivers/spmi/spmi.c +++ b/drivers/spmi/spmi.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2015, 2020, The Linux Foundation. All rights reserved. */ #include #include @@ -62,7 +62,7 @@ int spmi_device_add(struct spmi_device *sdev) struct spmi_controller *ctrl = sdev->ctrl; int err; - dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); + dev_set_name(&sdev->dev, "spmi%d-%02x", ctrl->nr, sdev->usid); err = device_add(&sdev->dev); if (err < 0) { -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project