Thread (23 messages) 23 messages, 5 authors, 2018-03-27

[PATCH v3 2/3] gpiolib: Support 'gpio-reserved-ranges' property

From: andriy.shevchenko@linux.intel.com (Andy Shevchenko)
Date: 2018-03-21 20:31:22
Also in: linux-arm-msm, linux-devicetree, linux-gpio, lkml

On Wed, 2018-03-21 at 12:59 -0700, Stephen Boyd wrote:
Quoting Andy Shevchenko (2018-03-21 10:59:10)
quoted
On Wed, 2018-03-21 at 09:58 -0700, Stephen Boyd wrote:
quoted
quoted
quoted
+     gpiochip->valid_mask = kcalloc(BITS_TO_LONGS(gpiochip-
quoted
ngpio),
+                                    sizeof(long), GFP_KERNEL);
Just noticed that kcalloc is superfluous here.
kmalloc_array() would be enough.
Ok. I was copying the irqchip style. Should I fold them together into
a
helper function and also update to kmalloc_array?
Not sure about first part, but definitely makes sense the second one (as
a separate patch perhaps).

-- 
Andy Shevchenko [off-list ref]
Intel Finland Oy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help