Re: [PATCH] regulator: do not ignore provided init_data

From: Mark Brown
Date: Tue Sep 24 2024 - 04:14:07 EST


On Mon, Sep 23, 2024 at 06:50:33PM +0200, Jerome Brunet wrote:
> On Mon 23 Sep 2024 at 16:19, Mark Brown <broonie@xxxxxxxxxx> wrote:

> > That probably means checking if regulator_of_get_init_node() can find
> > something and warning if that's the case.

> We could warn if both init_data and desc->of_match are set ?

> Setting desc->of_match is an indication regulator is expected to search
> DT, is'nt it ? Having both set be the indicaction of the conflict.

> Maybe the warn is enough then. Do you prefer if I keep the change of v1
> or drop it ?

Yes, that'd detect problems. There's some older drivers that don't use
of_match but it'd cover most things quite cheaply.

Attachment: signature.asc
Description: PGP signature