lkml.org 
[lkml]   [2020]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 3/3] power: supply: add CellWise cw2015 fuel gauge driver
On Wed, Mar 11, 2020 at 12:18:30PM +0200, Andy Shevchenko wrote:
> On Wed, Mar 11, 2020 at 10:30:43AM +0100, Tobias Schramm wrote:

...

> > + ret = device_property_read_u32_array(dev,
> > + "cellwise,monitor-interval-ms",
>
> It's fine to have it on one line.
>
> > + &value, 1);


Actually this is simple
ret = device_property_read_u32(dev, "cellwise,monitor-interval-ms", &value);
(You can use one or two lines on your choice)

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2020-03-11 11:23    [W:0.054 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site