From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [RESEND] PM / Domains: remove define_genpd_open_function() and define_genpd_debugfs_fops() Date: Wed, 19 Dec 2018 09:32:23 +0100 Message-ID: <20181219083223.GC31670@kroah.com> References: <20181215084526.27210-1-tiny.windzz@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Ulf Hansson Cc: Yangtao Li , "Rafael J. Wysocki" , Kevin Hilman , Len Brown , Pavel Machek , Linux PM , Linux Kernel Mailing List List-Id: linux-pm@vger.kernel.org On Mon, Dec 17, 2018 at 09:19:07AM +0100, Ulf Hansson wrote: > On Sat, 15 Dec 2018 at 09:45, Yangtao Li wrote: > > > > We already have the DEFINE_SHOW_ATTRIBUTE, There is no need to define > > such a macro, so remove define_genpd_open_function and > > define_genpd_debugfs_fops. > > > > Convert them to DEFINE_SHOW_ATTRIBUTE. > > > > Signed-off-by: Yangtao Li > > --- > > drivers/base/power/domain.c | 71 +++++++++++++------------------------ > > 1 file changed, 24 insertions(+), 47 deletions(-) > > > > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c > > index 7f38a92b444a..10a61d6147d0 100644 > > --- a/drivers/base/power/domain.c > > +++ b/drivers/base/power/domain.c > > @@ -2671,7 +2671,7 @@ static int genpd_summary_one(struct seq_file *s, > > return 0; > > } > > > > -static int genpd_summary_show(struct seq_file *s, void *data) > > +static int summary_show(struct seq_file *s, void *data) > > Why rename the function(s)? Because the macro requires it?