lkml.org 
[lkml]   [2022]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: virtual: add devicetree support
On Fri, Feb 18, 2022 at 12:06:03PM +0100, Vincent Whitchurch wrote:

> The reg-virt-consumer is very useful for development and testing of
> regulator drivers since it allows voltages and modes to be set from
> userspace. However, it currently requires platform data so it cannot be
> used on modern platforms. Add support for probing it from the
> devicetree to remedy this.

Meh, you can add a bit of code on module_init() to register a platform
device or something.

> Since this driver is only meant for testing and is a purely software
> construct, no binding documentation is added.

That's not going to stop anyone. We should at the very least be
printing very loud warnings if anyone tries to intantiate this.

> + if (!reg_id)
> + reg_id = "default";
> +

Oh?
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2022-02-23 15:23    [W:0.042 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site