#include <linux/device.h>
#include "mgb4_core.h"
#include "mgb4_sysfs.h"
static ssize_t module_version_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t module_type_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t fw_version_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t fw_type_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t serial_number_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(module_version);
static DEVICE_ATTR_RO(module_type);
static DEVICE_ATTR_RO(fw_version);
static DEVICE_ATTR_RO(fw_type);
static DEVICE_ATTR_RO(serial_number);
struct attribute *mgb4_pci_attrs[] = …;