/* Returns 1 (TRUE) if it is a 'type' device, 0 otherwise.  */
static int edd_dev_is_type(struct edd_device *edev, const char *type)
/* Returns 1 (TRUE) if it is a 'type' device, 0 otherwise.  */
static int edd_dev_is_type(struct edd_device *edev, const char *type)
{
	struct edd_info *info;
	if (!edev)
		return 0;
	info = edd_dev_get_info(edev);
	if (type && info) {
		if (!strncmp(info->params.host_bus_type, type, strlen(type)) ||
		    !strncmp(info->params.interface_type, type, strlen(type)))
			return 1;
	}
	return 0;
}