/* use_diag controls whether the driver should use diag rather than ssch to talk to the device  */
static ssize_t dasd_use_diag_show(struct device *dev, struct device_attribute *attr, char *buf)
/* use_diag controls whether the driver should use diag rather than ssch to talk to the device  */
static ssize_t dasd_use_diag_show(struct device *dev, struct device_attribute *attr, char *buf)
{
	struct dasd_devmap *devmap;
	int use_diag;
	devmap = dasd_find_busid(dev_name(dev));
	if (!IS_ERR(devmap))
		use_diag = (devmap->features & DASD_FEATURE_USEDIAG) != 0;
	else
		use_diag = (DASD_FEATURE_DEFAULT & DASD_FEATURE_USEDIAG) != 0;
	return sprintf(buf, use_diag ? "1\n" : "0\n");
}