broadcom/xml: Fix up safe name confusion with prefixing.
authorEric Anholt <eric@anholt.net>
Thu, 28 Dec 2017 20:59:33 +0000 (12:59 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 3 Jan 2018 22:25:23 +0000 (14:25 -0800)
commitd3e8a4b96c80955e832981534b1f4c3856b6fdb4
treeee5621390ae0403b4d3d195d429f1c20b37bb79c
parent48cabc1e751bf537f4fdb2721d7a7492c8e401a1
broadcom/xml: Fix up safe name confusion with prefixing.

For enums we were doubling the underscore if the value had a numeric first
character of its name (which safe_name() adds an underscore to).  A little
helper function cleans up the other instance of prefixing while also
fixing this.
src/broadcom/cle/gen_pack_header.py