On Wed, Aug 25, 2021 at 11:09:09PM +0100, Daniel Scally wrote: > Alright; and what about parsing the platform data into a struct > regulator_init_data then...at the moment that's left up to the > individual regulator drivers. In my mind that's something better left to > core, so rather than finding the right instance of struct > regulator_init_data from the regulator_lookup_list the > regulator_lookup_init_data() function would be finding the right > instance of the struct from cfg->dev->platform_data instead...what are > your thoughts on that? That sounds like a useful helper to have - we need to let drivers have custom platform data (especially for MFDs) but even there they could use such a helper if they can point it at an array stored elsewhere.