diff options
author | 2017-08-29 15:53:18 +0200 | |
---|---|---|
committer | 2017-08-31 18:58:45 +0200 | |
commit | 2296eee704e70dac7fef8ac13f2716e4896dd13e (patch) | |
tree | de7658dad8634607a5110f28b54ca7c84ace35e0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | serial: 8250_port: Remove useless NULL checks (diff) | |
download | wireguard-linux-2296eee704e70dac7fef8ac13f2716e4896dd13e.tar.xz wireguard-linux-2296eee704e70dac7fef8ac13f2716e4896dd13e.zip |
tty: goldfish: Refactor constants to better reflect their nature
Classify constants GOLDFISH_TTY_xxx into two groups: command ids and
register offsets. Apply different naming for register offsets (add
'REG_' after 'GOLDFISH_TTY_' in constant names). Change implementation
to use preprocessor's '#define' statements instead of 'enum'
declaration (as this is more common way of implementation in such
cases).
This makes the driver code easier to follow and hopefully prevents
future bugs.
Signed-off-by: Miodrag Dinic <miodrag.dinic@imgtec.com>
Signed-off-by: Goran Ferenc <goran.ferenc@imgtec.com>
Signed-off-by: Aleksandar Markovic <aleksandar.markovic@imgtec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions