From: Tejun Heo <tj@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
David Airlie <airlied@linux.ie>,
Rasmus Villemoes <linux@rasmusvillemoes.dk>,
Mika Westerberg <mika.westerberg@linux.intel.com>
Subject: Re: [PATCH v1 0/3] lib/string: introduce match_string() helper
Date: Tue, 15 Sep 2015 11:35:29 -0400 [thread overview]
Message-ID: <20150915153529.GE2905@mtj.duckdns.org> (raw)
In-Reply-To: <1442300031-107677-1-git-send-email-andriy.shevchenko@linux.intel.com>
Hello,
On Tue, Sep 15, 2015 at 09:53:48AM +0300, Andy Shevchenko wrote:
> There are users of a simple string matching in the array. Let's do a common
> helper for that.
>
> Two users are updated in the series. one more is coming [1].
>
> [1] http://www.spinics.net/lists/kernel/msg2074265.html
>
> The series is compile tested.
>
> Andy Shevchenko (3):
> lib/string: introduce match_string() helper
> drm/edid: convert to use match_string() helper
> ata: hpt366: convert to use match_string() helper
>
> drivers/ata/pata_hpt366.c | 13 +++++--------
> drivers/gpu/drm/drm_edid_load.c | 17 ++++++-----------
> include/linux/string.h | 7 +++++++
> lib/string.c | 26 ++++++++++++++++++++++++++
> 4 files changed, 44 insertions(+), 19 deletions(-)
While increase in LOC isn't the only indicator, we're adding two
helper functions each for two usages. I'm not quite sure the addition
of helpers is paying off here.
Thanks.
--
tejun
next prev parent reply other threads:[~2015-09-15 15:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 6:53 Andy Shevchenko
2015-09-15 6:53 ` [PATCH v1 1/3] " Andy Shevchenko
2015-09-15 6:53 ` [PATCH v1 2/3] drm/edid: convert to use " Andy Shevchenko
2015-09-15 6:53 ` [PATCH v1 3/3] ata: hpt366: " Andy Shevchenko
2015-09-15 15:35 ` Tejun Heo [this message]
2015-10-22 11:33 ` [PATCH v1 0/3] lib/string: introduce " Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150915153529.GE2905@mtj.duckdns.org \
--to=tj@kernel.org \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=mika.westerberg@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®