More likely they would require companies to publish specs suitable for driver authors. I’ve always thought that companies treating their register configuration and I/O offsets as a trade secret is ridiculous.
It would just revert the market for computer peripherals and interfaces to how it was before the launch of MS Windows 95.
In the MS-DOS days everything was provided with detailed technical information, so you could write your own device drivers, for any operating system.
This ended in 1995, after which most hardware vendors stopped providing documentation and replaced it with MS Windows device drivers.
It wasn’t until Windows 95 and WinHec and “Plug and Play” that x86 based PCs became usable for the mass market
In fact I think manuals are probably better in a lot of cases, OEM drivers are routinely terrible.