/* Get/Set Link-widths enabled. Or of 1=1x, 2=4x (this is human/IB centric,  */
static ssize_t show_lwid_enb(struct device *dev, struct device_attribute *attr, char *buf)
/* Get/Set Link-widths enabled. Or of 1=1x, 2=4x (this is human/IB centric,  */
static ssize_t show_lwid_enb(struct device *dev, struct device_attribute *attr, char *buf)
{
	struct ipath_devdata *dd = dev_get_drvdata(dev);
	int ret;
	ret = dd->ipath_f_get_ib_cfg(dd, IPATH_IB_CFG_LWID_ENB);
	if (ret >= 0)
		ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret);
	return ret;
}