lkml.org 
[lkml]   [2020]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 2/2] power: supply: add CellWise cw2015 fuel gauge driver
From
Date
Hi Andy,

was just about to send v3.

>
> __be16 value;
>
>
> ret = regmap(..., (...)value, sizeof(value));
> 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.


Thanks,

Tobias

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