/* Used by a driver to check whether a Zorro device present in the system is in its list of supported devices. Returns the matching zorro_device_id structure or NULL if there is no match.  */
const struct zorro_device_id* zorro_match_device(const struct zorro_device_id *ids, const struct zorro_dev *z)
/* Used by a driver to check whether a Zorro device present in the system is in its list of supported devices. Returns the matching zorro_device_id structure or NULL if there is no match.  */
const struct zorro_device_id* zorro_match_device(const struct zorro_device_id *ids, const struct zorro_dev *z)
{
	while (ids->id) {
		if (ids->id == ZORRO_WILDCARD || ids->id == z->id)
			return ids;
		ids++;
	}
	return NULL;
}