powerpc/dt_cpu_ftrs: Avoid separate strlen() in scan_callback()

Check only the first byte instead of scanning the entire string with
strlen().  While at it, keep dt_cpu_name static, but move it into
dt_cpu_ftrs_scan_callback(), where it is assigned.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260701114428.818748-3-thorsten.blum@linux.dev
This commit is contained in:
Thorsten Blum 2026-07-01 13:44:28 +02:00 • committed by Madhavan Srinivasan
commit b6cfbfd6b2