> Date: Wed, 12 Jan 2022 15:42:17 +0000 > From: Robert Swindells <r...@fdy2.co.uk> > > I'm guessing this is a platform that doesn't use FDT. > > Maybe we need a more general API for regulators.
What other instances would a more general API cover? Is there some ACPI interface for regulators? > The current situation causes a fair bit of "#ifdef FDT" in the drm > compat code. I count 1: https://nxr.netbsd.org/xref/src/sys/external/bsd/drm2/include/linux/regulator/consumer.h?r=1.5#39 Am I missing some? There's also one in linux/clk.h, for clocks, and two in nouveau_pci.c and radeon_pci.c, for kicking out the FBT framebuffer; these don't appear to be relevant to regulators.