lkml.org 
[lkml]   [2020]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC] regulator: core: fix handling negative voltages e.g. in EPD PMICs
On Sun, Feb 23, 2020 at 04:35:01PM +0100, Andreas Kemnade wrote:

> An alternative would be to handle voltages as absolute values.
> There are probably no regulators with support both negative
> and positive output.

This is what'd be needed, your approach here is a bit of a hack and
leaves some values unrepresentable if they overlap with errnos which
obviously has issues if someone has a need for those values. Ground is
to a large extent somewhat arbatrary anyway and some systems do just
redefine it as part of their normal operation (eg, VMID based audio
systems) so this wouldn't be a huge departure.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-02-24 13:06    [W:0.080 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site