[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <503baadb-b8f2-f4bd-a1a8-44b2dc77b933@manjaro.org>
Date: Wed, 11 Mar 2020 09:48:30 +0100
From: Tobias Schramm <t.schramm@...jaro.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Tobias Schramm <t.schramm@...jaro.org>
Cc: Sebastian Reichel <sre@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-pm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/2] power: supply: add CellWise cw2015 fuel gauge
driver
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
Powered by blists - more mailing lists