[PATCH v3 0/4] Set the scan code prefix when necessary.