/* Return value: number of bytes printed to buffer  */
static ssize_t pmcraid_show_adapter_id(struct device *dev, struct device_attribute *attr, char *buf)
/* Return value: number of bytes printed to buffer  */
static ssize_t pmcraid_show_adapter_id(struct device *dev, struct device_attribute *attr, char *buf)
{
	struct Scsi_Host *shost = class_to_shost(dev);
	struct pmcraid_instance *pinstance =
		(struct pmcraid_instance *)shost->hostdata;
	u32 adapter_id = (pinstance->pdev->bus->number << 8) |
		pinstance->pdev->devfn;
	u32 aen_group = pmcraid_event_family.id;
	return snprintf(buf, PAGE_SIZE,
			"adapter id: %d\nminor: %d\naen group: %d\n",
			adapter_id, MINOR(pinstance->cdev.dev), aen_group);
}