[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190318122030.GH6101@amd>
Date: Mon, 18 Mar 2019 13:20:30 +0100
From: Pavel Machek <pavel@....cz>
To: Yangtao Li <tiny.windzz@...il.com>
Cc: rjw@...ysocki.net, len.brown@...el.com, gregkh@...uxfoundation.org,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/4] PM / core: Introduce some helper for better Code
reuse
On Sat 2019-03-16 00:59:24, Yangtao Li wrote:
> This patch set introduces some functions and macros that help reduce
> code duplication.
>
> Yangtao Li (4):
> PM / core: Introduce dpm_async_fn() helper
> PM / core: Introduce DEVICE_SUSPEND_FUNC() helper macro
> PM / core: Introduce ASYNC_RESUME_FUNC() helper macro
> PM / core: Introduce ASYNC_SUSPEND_FUNC() helper macro
>
> drivers/base/power/main.c | 182 ++++++++++++--------------------------
> 1 file changed, 59 insertions(+), 123 deletions(-)
I'm not a big fan. Yes, you got line count down. But no, I do not
think "beauty" of the macros makes it worth it.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)
Powered by blists - more mailing lists