/* Functionally similar to acpi_ex_eisa_id_to_string(), but that's buried in the ACPI CA, and we can't depend on it being present.  */
void pnp_eisa_id_to_string(u32 id, char *str)
/* Functionally similar to acpi_ex_eisa_id_to_string(), but that's buried in the ACPI CA, and we can't depend on it being present.  */
void pnp_eisa_id_to_string(u32 id, char *str)
{
	id = be32_to_cpu(id);
	str[0] = 'A' + ((id >> 26) & 0x3f) - 1;
	str[1] = 'A' + ((id >> 21) & 0x1f) - 1;
	str[2] = 'A' + ((id >> 16) & 0x1f) - 1;
	str[3] = hex_asc_hi(id >> 8);
	str[4] = hex_asc_lo(id >> 8);
	str[5] = hex_asc_hi(id);
	str[6] = hex_asc_lo(id);
	str[7] = '\0';
}