aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAleksandar Markovic <[email protected]>2017-08-29 13:53:18 +0000
committerGreg Kroah-Hartman <[email protected]>2017-08-31 16:58:45 +0000
commit2296eee704e70dac7fef8ac13f2716e4896dd13e (patch)
treede7658dad8634607a5110f28b54ca7c84ace35e0 /net/switchdev/switchdev.c
parentserial: 8250_port: Remove useless NULL checks (diff)
downloadkernel-2296eee704e70dac7fef8ac13f2716e4896dd13e.tar.gz
kernel-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 <[email protected]> Signed-off-by: Goran Ferenc <[email protected]> Signed-off-by: Aleksandar Markovic <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions