On Mon, Feb 03, 2025 at 03:25:18PM +0100, Greg Kroah-Hartman wrote: > The dummy regulator driver does not need to create a platform device, it > only did so because it was simple to do. Change it over to use the > faux bus instead as this is NOT a real platform device, and it makes > the code even smaller than before. No, they did this because you explicitly asked that this be done.... > -static int dummy_regulator_probe(struct platform_device *pdev) > +static int dummy_regulator_probe(struct faux_device *vdev) Just dev or fdev - we could just pass a struct device in here, we don't actually care that it's a platform device at this point. Having the abbreviation mismatch with the device type is odd.
Attachment:
signature.asc
Description: PGP signature