#include <linux/string.h>
#include <linux/device.h>
#include <scsi/scsi_host.h>
#include "fnic.h"
static ssize_t fnic_show_state(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t fnic_show_drv_version(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t fnic_show_link_state(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR(fnic_state, S_IRUGO, fnic_show_state, NULL);
static DEVICE_ATTR(drv_version, S_IRUGO, fnic_show_drv_version, NULL);
static DEVICE_ATTR(link_state, S_IRUGO, fnic_show_link_state, NULL);
static struct attribute *fnic_host_attrs[] = …;
static const struct attribute_group fnic_host_attr_group = …;
const struct attribute_group *fnic_host_groups[] = …;