led-layout: use common types everywhere
Rather than scattered map and set typedefs, centralize the two common
structures into 'ledlayout.hpp': ActionSet, GroupMap. Use them
everywhere where previous raw maps and sets were used.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0ed5203146a6486a49caf4000f545ded0088dc15
diff --git a/scripts/parse_led.py b/scripts/parse_led.py
index 1464ba7..63cb4e5 100755
--- a/scripts/parse_led.py
+++ b/scripts/parse_led.py
@@ -47,8 +47,7 @@
ofile.write("/* !!! WARNING: This is a GENERATED Code..")
ofile.write("Please do NOT Edit !!! */\n\n")
- ofile.write("static const std::unordered_map<std::string,")
- ofile.write(" std::set<phosphor::led::Layout::LedAction>>")
+ ofile.write("static const phosphor::led::GroupMap")
ofile.write(" systemLedMap = {\n\n")
for group in list(ifile.keys()):
# This section generates an std::unordered_map of LedGroupNames to