lkml.org 
[lkml]   [2020]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] hwmon: (lm75) Add regulator support
On Thu, Sep 17, 2020 at 12:18:19PM +0200, Alban Bedel wrote:

> + data->vs = devm_regulator_get_optional(dev, "vs");
> + if (IS_ERR(data->vs)) {

Unless the device can work without power you should not be using
regulator_get_optional().
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-09-17 13:06    [W:0.166 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site