diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-06-29 14:11:16 +1000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-07-02 16:10:07 +0200 |
commit | 44ddf559d5792b2bffcd44febf9b7b55b03e06b4 (patch) | |
tree | 0f03179e6e34d20b0c9d4e1e23a88678998ebb3c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) |
gpio: aspeed: Rework register type accessors
Use a single accessor function for all register types instead
of several spread around. This will make it easier/cleaner
to introduce new registers and keep the mechanism in one
place.
The big switch/case is optimized at compile time since the
switch value is a constant.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions