Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
wm8350-hwmon.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/mfd/wm8350/core.h>
#include <linux/mfd/wm8350/comparator.h>

Go to the source code of this file.

Macros

#define WM8350_NAMED_VOLTAGE(id, name)
 

Functions

 WM8350_NAMED_VOLTAGE (0, WM8350_AUXADC_USB)
 
 WM8350_NAMED_VOLTAGE (1, WM8350_AUXADC_BATT)
 
 WM8350_NAMED_VOLTAGE (2, WM8350_AUXADC_LINE)
 
 module_platform_driver (wm8350_hwmon_driver)
 
 MODULE_AUTHOR ("Mark Brown <[email protected]>")
 
 MODULE_DESCRIPTION ("WM8350 Hardware Monitoring")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:wm8350-hwmon")
 

Macro Definition Documentation

#define WM8350_NAMED_VOLTAGE (   id,
  name 
)
Value:
static SENSOR_DEVICE_ATTR(in##id##_input, S_IRUGO, show_voltage,\
NULL, name); \
static SENSOR_DEVICE_ATTR(in##id##_label, S_IRUGO, show_label, \

Definition at line 65 of file wm8350-hwmon.c.

Function Documentation

MODULE_ALIAS ( "platform:wm8350-hwmon"  )
MODULE_AUTHOR ( "Mark Brown <[email protected]>"  )
MODULE_DESCRIPTION ( "WM8350 Hardware Monitoring"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( wm8350_hwmon_driver  )
WM8350_NAMED_VOLTAGE ( ,
WM8350_AUXADC_USB   
)
WM8350_NAMED_VOLTAGE ( ,
WM8350_AUXADC_BATT   
)
WM8350_NAMED_VOLTAGE ( ,
WM8350_AUXADC_LINE   
)