Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754807AbdDKNrz (ORCPT ); Tue, 11 Apr 2017 09:47:55 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:13351 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752974AbdDKNrg (ORCPT ); Tue, 11 Apr 2017 09:47:36 -0400 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 11 Apr 2017 06:47:35 -0700 Date: Tue, 11 Apr 2017 16:47:06 +0300 From: Peter De Schrijver To: Stephen Boyd CC: Michael Turquette , , Subject: Re: [PATCH] clk: add clk_possible_parents debugfs file Message-ID: <20170411134706.GG30730@tbergstrom-lnx.Nvidia.com> References: <1490102432-21314-1-git-send-email-pdeschrijver@nvidia.com> <20170407194506.GF7065@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20170407194506.GF7065@codeaurora.org> X-NVConfidentiality: public User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [10.21.24.170] X-ClientProxiedBy: UKMAIL102.nvidia.com (10.26.138.15) To drukmail101.nvidia.com (10.25.59.19) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 851 Lines: 29 On Fri, Apr 07, 2017 at 12:45:06PM -0700, Stephen Boyd wrote: > On 03/21, Peter De Schrijver wrote: > > diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c > > index f5f2bcd..2fa2fb8 100644 > > --- a/drivers/clk/clk.c > > +++ b/drivers/clk/clk.c > > @@ -2128,6 +2128,34 @@ static int clk_dump_open(struct inode *inode, struct file *file) > > .release = single_release, > > }; > > > > +static int possible_parents_dump(struct seq_file *s, void *data) > > +{ > > + struct clk_core *core; > > + int i; > > + > > + core = (struct clk_core *)s->private; > > Useless cast from void. > > > + > > + for (i = 0; i < core->num_parents - 1; i++) > > + seq_printf(s, "%s ", core->parent_names[i]); > > I hope we don't have spaces in clk names! I don't think we do. > I don't think we do either, at least I've never seen a clk name with a space. Peter.