Re: [PATCH 10/19 v3] regulator: s2mps11: Pass descriptor instead of GPIO number
From: Andy Shevchenko
Date: Mon May 28 2018 - 08:26:27 EST
On Mon, May 28, 2018 at 2:29 PM, Bartlomiej Zolnierkiewicz
<b.zolnierkie@xxxxxxxxxxx> 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