From patchwork Tue Jan 8 13:30:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 154971 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4885604jaa; Tue, 8 Jan 2019 05:31:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN4WlAeyFZjwiZarojYii/Lvy+lNV8gefmVOWpU1Zj5eMDG3FkpRJjJjjgRDUUgCt+g/FKh6 X-Received: by 2002:a63:585c:: with SMTP id i28mr1577092pgm.178.1546954307003; Tue, 08 Jan 2019 05:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546954306; cv=none; d=google.com; s=arc-20160816; b=vbCFuqaLUICuuHMLK+eZghOnCi6v3hQeGRGFiScT2O1X21Z7X0Tqw85SxTYvI1nDeU eMY9I97eE3kJGojAbsQrqqXSDdTf6odFrOWb4Yp3ccyiun+mO0JFXpoy23QAgn6UElWp iMJO5qnERBHIpW7OHQh4z3VKFBmTZjXUSOk+yGf5x67KFCaaQL55apZ90S4pvcFlvM5c P57FOf5QdQqZm4bf9srVJKXgnHN2xBbCcgEpz8TBLEEw1LZP7CQqgWW3OeGBQt+pChr8 a4+R/84Bi6m7W1N2VL22lMX4OloFX2NnrakNzi+XTbM0BzXHkZrLcEIZkpUNZ+RnZaVz AMrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=eAmFgPhGva96tsSGYPDLO5HO50MYtplOHJgyz1RyOhE=; b=AGtYdh/zIULzzPTWkDsFQs7ZlXzyr8MpDeoyIsaRbP2dx5wmj+mO4BqH0fJH+zXkHz WGQr1lahGWYh6Yzk7PuJ7L14N6tXgGRO3Alo80317N6g5q5klN79JCDqWDeJhh3zHShM oAI847vdIIKqm+KxjRVYZweC/ENl1w9TddnZV1zfys3T5UZ08tiIJcKFBqUHtl9bqHUZ 8nd7pWp6TFZq1hdwHrJHLSUClI2wbsQwFp1hHnem9bPRqI91wcyaPeEYOs2DkxWjleoE gPChJCbHPbzVL9vSc7x5qrrIfJl3xbxv4Vssh1EnJTdBtVpfLHZwn+5Hw00/pdCDLNWV SCwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SL0UsEMn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si8208432pgb.245.2019.01.08.05.31.46; Tue, 08 Jan 2019 05:31:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=SL0UsEMn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728589AbfAHNbq (ORCPT + 7 others); Tue, 8 Jan 2019 08:31:46 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:53510 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728558AbfAHNbq (ORCPT ); Tue, 8 Jan 2019 08:31:46 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x08DVa4s030076; Tue, 8 Jan 2019 07:31:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546954296; bh=eAmFgPhGva96tsSGYPDLO5HO50MYtplOHJgyz1RyOhE=; h=From:To:Subject:Date:In-Reply-To:References; b=SL0UsEMn3V89g+/zYOzydPvpgPnVABOFxm/na3R9J9TMEHBk46yF2FbVmFdy2cJA5 1RWV0MxNPa2+0Bc1kuyT7yv3Ar/yJFwKZUgIQDjpkYJUiluVtKqMmSKqrb9g1q1KZz lv9VCLig9P2Rm++AIEQKZaz3yOM+5pEq1J0XFh2s= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x08DVa4S120766 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Jan 2019 07:31:36 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 8 Jan 2019 07:31:34 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 8 Jan 2019 07:31:34 -0600 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x08DVMuh011668; Tue, 8 Jan 2019 07:31:32 -0600 From: Tero Kristo To: , , , , , , Subject: [PATCH 3/3] clk: keystone: sci-clk: use shorter names for clocks Date: Tue, 8 Jan 2019 15:30:23 +0200 Message-ID: <1546954223-9738-4-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1546954223-9738-1-git-send-email-t-kristo@ti.com> References: <1546954223-9738-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Currently the full device name of the clock provider is used as the initial part of the registered clock name. This is pretty long and completely unnecessary info in generic case, so shorten it up. Now, we only contain the short name of the clock provider node (pOFn.) Signed-off-by: Tero Kristo --- drivers/clk/keystone/sci-clk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/clk/keystone/sci-clk.c b/drivers/clk/keystone/sci-clk.c index d1d6dc8..57b7d02 100644 --- a/drivers/clk/keystone/sci-clk.c +++ b/drivers/clk/keystone/sci-clk.c @@ -283,7 +283,7 @@ static int _sci_clk_build(struct sci_clk_provider *provider, int i; int ret = 0; - name = kasprintf(GFP_KERNEL, "%s:%d:%d", dev_name(provider->dev), + name = kasprintf(GFP_KERNEL, "%pOFn:%d:%d", provider->dev->of_node, sci_clk->dev_id, sci_clk->clk_id); init.name = name; @@ -309,8 +309,8 @@ static int _sci_clk_build(struct sci_clk_provider *provider, for (i = 0; i < sci_clk->num_parents; i++) { char *parent_name; - parent_name = kasprintf(GFP_KERNEL, "%s:%d:%d", - dev_name(provider->dev), + parent_name = kasprintf(GFP_KERNEL, "%pOFn:%d:%d", + provider->dev->of_node, sci_clk->dev_id, sci_clk->clk_id + 1 + i); if (!parent_name) {