[PATCH 1/6] reg: Use is_switch() where possible