aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMathew King <mathewk@chromium.org>2020-05-04 14:29:29 -0600
committerSebastian Reichel <sre@kernel.org>2020-05-07 00:53:57 +0200
commit5b505366ac6c77a623e18fe18cedb2d4d3c9a7f3 (patch)
treefb4998916f752d71f2298d82ef4843c8dd330ed4 /tools/perf/scripts/python/export-to-postgresql.py
parentpower: supply: core: Use designated initializer for property text arrays (diff)
downloadwireguard-linux-5b505366ac6c77a623e18fe18cedb2d4d3c9a7f3.tar.xz
wireguard-linux-5b505366ac6c77a623e18fe18cedb2d4d3c9a7f3.zip
power: supply: core: Add a macro that maps enum properties to text values
Reduce the number of touch points to add a new enum property to the power_supply class by mapping the array of text values to the device attribute descriptor. A new enum property can now added by creating an array with the text values named POWER_SUPPLY_${PROPNAME}_TEXT and adding POWER_SUPPLY_ENUM_ATTR(${PROPNAME}) to the power_supply_attrs array. Signed-off-by: Mathew King <mathewk@chromium.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions