I would modify that:
If a company restricts a consumer from repairing a device (either explicitly in warranty policies, or implicitly by producing devices that are hard to repair, restricting part availability, or not having manuals available), then the company must (not should) provide an extended warranty for all damage scenarios at cost.
Define easy? (Modern electronics, for instance, is highly integrated, full of miniature surface-mounted components etc., and so the "repair process" might as well be simply selling you a replacement for the whole thing.)
See the definitions by iFixIt.
So would you agree on $1 million fee per customer? (which is what companies would probably ask if you made such law)
Sounds fair, it takes work to keep software updated.
If company does not want to provide resources needed for consumer to repair a device- it ought to provide extended warranty to the consumer for free or a small fee.