All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] gpiolib: gpio_device label improvements
@ 2017-12-14 14:29 Bartosz Golaszewski
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2017-12-14 14:29 UTC (permalink / raw)
  To: Linus Walleij, Joe Perches; +Cc: linux-gpio, linux-kernel, Bartosz Golaszewski

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-20  8:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-14 14:29 [PATCH v2 0/2] gpiolib: gpio_device label improvements Bartosz Golaszewski
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.