From: Bartosz Golaszewski <brgl@bgdev.pl>
To: Linus Walleij <linus.walleij@linaro.org>, Joe Perches <joe@perches.com>
Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
Bartosz Golaszewski <brgl@bgdev.pl>
Subject: [PATCH v2 0/2] gpiolib: gpio_device label improvements
Date: Thu, 14 Dec 2017 15:29:18 +0100 [thread overview]
Message-ID: <20171214142920.32683-1-brgl@bgdev.pl> (raw)
Avoid unnecessary memory allocations with kstrdup_const().
v1 -> v2:
- use a ternary operator instead of an if/else in patch 2/2
Bartosz Golaszewski (2):
gpiolib: constify label in gpio_device
gpiolib: use kstrdup_const() for gpio_device label
drivers/gpio/gpiolib.c | 9 +++------
drivers/gpio/gpiolib.h | 2 +-
2 files changed, 4 insertions(+), 7 deletions(-)
--
2.15.1
next reply other threads:[~2017-12-14 14:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-14 14:29 Bartosz Golaszewski [this message]
2017-12-14 14:29 ` [PATCH v2 1/2] gpiolib: constify label in gpio_device Bartosz Golaszewski
2017-12-14 14:29 ` [PATCH v2 2/2] gpiolib: use kstrdup_const() for gpio_device label Bartosz Golaszewski
2017-12-20 8:17 ` Linus Walleij
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=20171214142920.32683-1-brgl@bgdev.pl \
--to=brgl@bgdev.pl \
--cc=joe@perches.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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
Powered by JetHome