diff options
author | Peter Hurley <[email protected]> | 2016-01-16 15:23:40 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-02-06 22:07:37 -0800 |
commit | cda64e68240265752c6db22a75f28707dfaf6563 (patch) | |
tree | fa27f6b48e29da9b1375ec97fad04ea24087ac98 /tools/perf/scripts/python | |
parent | 2eaa790989e03900298ad24f77f1086dbbc1aebd (diff) |
serial: earlycon: Fixup earlycon console name and index
Properly initialize the struct console 'name' and 'index' fields for
the registering earlycon. For earlycons w/o trailing numerals, the
index is set to 0; otherwise, the index is set to the value of the
trailing numeral. For example, the 'exynos4210' earlycon name == "exynos"
and index == 4210. Earlycons with embedded numerals will have all
non-trailing numerals as part of the name; for example, the 's3c2412'
earlycon name == "s3c" and index == 2412.
This ackward scheme was initially added for the uart8250 earlycon;
adopt this scheme for the other earlycon "drivers".
Introduce earlycon_init() which performs the string scanning and
initializes the name and index fields; encapsulate the other console
field initializations within.
Acked-by: Rob Herring <[email protected]>
Signed-off-by: Peter Hurley <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions