lkml.org 
[lkml]   [2018]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 10/19 v3] regulator: s2mps11: Pass descriptor instead of GPIO number
On Mon, May 28, 2018 at 2:29 PM, Bartlomiej Zolnierkiewicz
<b.zolnierkie@samsung.com> wrote:

> - s2mps11->ext_control_gpiod = devm_kmalloc(&pdev->dev,
> + s2mps11->ext_control_gpiod = devm_kzalloc(&pdev->dev,
> sizeof(*s2mps11->ext_control_gpiod) * rdev_num,
> GFP_KERNEL);

devm_kcalloc() I would rather use.

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2018-05-28 14:27    [W:0.673 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site