Nicholas Chin has posted comments on this change by Nicholas Chin. ( https://review.coreboot.org/c/coreboot/+/83279?usp=email )
Change subject: RFC: util/autoport: Utilize text/template module ......................................................................
Patch Set 3:
(1 comment)
File util/autoport/templates/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/83279/comment/ca672be0_87153fe8?usp... : PS3, Line 9: len .PinConfig This is incorrect, as the original code used the length of PinConfig + 1 to account for the AZALIA_SUBVENDOR entry. Sadly, it doesn't seem like you can do arithmetic in Go templates.