Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
macio_sysfs.c File Reference
#include <linux/kernel.h>
#include <linux/stat.h>
#include <asm/macio.h>

Go to the source code of this file.

Macros

#define macio_config_of_attr(field, format_string)
 

Functions

 macio_config_of_attr (name,"%s\n")
 
 macio_config_of_attr (type,"%s\n")
 

Variables

struct device_attribute macio_dev_attrs []
 

Macro Definition Documentation

#define macio_config_of_attr (   field,
  format_string 
)
Value:
static ssize_t \
field##_show (struct device *dev, struct device_attribute *attr, \
char *buf) \
{ \
struct macio_dev *mdev = to_macio_device (dev); \
return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
}

Definition at line 6 of file macio_sysfs.c.

Function Documentation

macio_config_of_attr ( name  ,
"%s\n"   
)
macio_config_of_attr ( type  ,
"%s\n"   
)

Variable Documentation

struct device_attribute macio_dev_attrs[]
Initial value:

Definition at line 64 of file macio_sysfs.c.