lkml.org 
[lkml]   [2020]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 3/4] regulator: mpq7920: add mpq7920 regulator driver
On Wed, Jan 08, 2020 at 02:12:33PM +0100, Saravanan Sekar wrote:

> + for_each_child_of_node(np, child) {
> + for (i = 0; i <= MPQ7920_BUCK4; i++) {
> + struct regulator_desc *rdesc = &info->rdesc[i];
> +
> + if (strcmp(rdesc->name, child->name))
> + continue;

You can replace this loop with an of_parse_cb callback, please send an
incremental patch doing this.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-01-08 16:51    [W:0.069 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site