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

Go to the source code of this file.

Macros

#define soundbus_config_of_attr(field, format_string)
 

Functions

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

Variables

struct device_attribute soundbus_dev_attrs []
 

Macro Definition Documentation

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

Definition at line 6 of file sysfs.c.

Function Documentation

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

Variable Documentation

struct device_attribute soundbus_dev_attrs[]
Initial value:

Definition at line 37 of file sysfs.c.