lkml.org 
[lkml]   [2020]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 2/2] power: supply: add CellWise cw2015 fuel gauge driver
On Wed, Mar 11, 2020 at 09:48:30AM +0100, Tobias Schramm wrote:

> was just about to send v3.
>
> >
> > __be16 value;
> >
> >
> > ret = regmap(..., (...)value, sizeof(value));

Just checked this, simple &value works.

> > if (ret)
> > return ret; // note, you missed this in above.
> >
> > *val = be16_to_cpu(value);
> > return 0;
> >
>
> That implementation looks pretty clean. I'll take it.

Thank you.

--
With Best Regards,
Andy Shevchenko


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