aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPeter Hurley <[email protected]>2016-01-16 15:23:40 -0800
committerGreg Kroah-Hartman <[email protected]>2016-02-06 22:07:37 -0800
commitcda64e68240265752c6db22a75f28707dfaf6563 (patch)
treefa27f6b48e29da9b1375ec97fad04ea24087ac98 /tools/perf/scripts/python
parent2eaa790989e03900298ad24f77f1086dbbc1aebd (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