lkml.org 
[lkml]   [2017]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 2/2] gpiolib: use kstrdup_const() for gpio_device label
On Thu, Dec 14, 2017 at 3:29 PM, Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> Users often pass a pointer to a static string to gpiochip_add_data()
> family of functions. Avoid unnecessary memory allocations with the
> provided helper routine.
>
> While at it: use a ternary operator instead of an if else for brevity.
>
> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>

Patch applied. (Patch 1/2 was already applied from an earlier
version).

Yours,
Linus Walleij

\
 
 \ /
  Last update: 2017-12-20 09:18    [W:0.039 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site