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

Go to the source code of this file.

Data Structures

struct  wm831x_hwmon
 

Macros

#define WM831X_VOLTAGE(id, name)
 
#define WM831X_NAMED_VOLTAGE(id, name)
 

Functions

 WM831X_VOLTAGE (0, WM831X_AUX_AUX1)
 
 WM831X_VOLTAGE (1, WM831X_AUX_AUX2)
 
 WM831X_VOLTAGE (2, WM831X_AUX_AUX3)
 
 WM831X_VOLTAGE (3, WM831X_AUX_AUX4)
 
 WM831X_NAMED_VOLTAGE (4, WM831X_AUX_SYSVDD)
 
 WM831X_NAMED_VOLTAGE (5, WM831X_AUX_USB)
 
 WM831X_NAMED_VOLTAGE (6, WM831X_AUX_BATT)
 
 WM831X_NAMED_VOLTAGE (7, WM831X_AUX_WALL)
 
 WM831X_NAMED_VOLTAGE (8, WM831X_AUX_BKUP_BATT)
 
 module_platform_driver (wm831x_hwmon_driver)
 
 MODULE_AUTHOR ("Mark Brown <[email protected]>")
 
 MODULE_DESCRIPTION ("WM831x Hardware Monitoring")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:wm831x-hwmon")
 

Macro Definition Documentation

#define WM831X_NAMED_VOLTAGE (   id,
  name 
)
Value:
static SENSOR_DEVICE_ATTR(in##id##_label, S_IRUGO, show_label, \

Definition at line 98 of file wm831x-hwmon.c.

#define WM831X_VOLTAGE (   id,
  name 
)
Value:
static SENSOR_DEVICE_ATTR(in##id##_input, S_IRUGO, show_voltage, \

Definition at line 94 of file wm831x-hwmon.c.

Function Documentation

MODULE_ALIAS ( "platform:wm831x-hwmon"  )
MODULE_AUTHOR ( "Mark Brown <[email protected]>"  )
MODULE_DESCRIPTION ( "WM831x Hardware Monitoring"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( wm831x_hwmon_driver  )
WM831X_NAMED_VOLTAGE ( ,
WM831X_AUX_SYSVDD   
)
WM831X_NAMED_VOLTAGE ( ,
WM831X_AUX_USB   
)
WM831X_NAMED_VOLTAGE ( ,
WM831X_AUX_BATT   
)
WM831X_NAMED_VOLTAGE ( ,
WM831X_AUX_WALL   
)
WM831X_NAMED_VOLTAGE ( ,
WM831X_AUX_BKUP_BATT   
)
WM831X_VOLTAGE ( ,
WM831X_AUX_AUX1   
)
WM831X_VOLTAGE ( ,
WM831X_AUX_AUX2   
)
WM831X_VOLTAGE ( ,
WM831X_AUX_AUX3   
)
WM831X_VOLTAGE ( ,
WM831X_AUX_AUX4   
)