/* The match criteria is: vendor, ec and bios much match.  */
static unsigned long __init tpacpi_check_quirks(const struct tpacpi_quirk *qlist, unsigned int qlist_size)
/* The match criteria is: vendor, ec and bios much match.  */
static unsigned long __init tpacpi_check_quirks(const struct tpacpi_quirk *qlist, unsigned int qlist_size)
{
	while (qlist_size) {
		if ((qlist->vendor == thinkpad_id.vendor ||
				qlist->vendor == TPACPI_MATCH_ANY) &&
		    (qlist->bios == thinkpad_id.bios_model ||
				qlist->bios == TPACPI_MATCH_ANY) &&
		    (qlist->ec == thinkpad_id.ec_model ||
				qlist->ec == TPACPI_MATCH_ANY))
			return qlist->quirks;
		qlist_size--;
		qlist++;
	}
	return 0;
}