lkml.org 
[lkml]   [2021]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] regulator: core: notify regulator enable with the voltage value
On Mon, Aug 16, 2021 at 11:20:01AM +0800, Jianqun Xu wrote:

> + ret = _regulator_get_voltage(rdev);
> + if (ret < 0)
> + ret = 0;
> +
> _notifier_call_chain(rdev, REGULATOR_EVENT_ENABLE,
> - NULL);
> + &ret);

This is going to be really expensive for devices without a cache and
it's going to be *very* rarely used if ever.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2021-08-16 14:04    [W:0.047 / U:24.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site