Messages in this thread | | | Date | Wed, 23 Feb 2022 14:23:16 +0000 | From | Mark Brown <> | Subject | Re: [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] | |