Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ds2760_battery.c File Reference
#include <linux/module.h>
#include <linux/param.h>
#include <linux/jiffies.h>
#include <linux/workqueue.h>
#include <linux/pm.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include "../w1/w1.h"
#include "../w1/slaves/w1_ds2760.h"

Go to the source code of this file.

Data Structures

struct  ds2760_device_info
 

Macros

#define to_ds2760_device_info(x)
 
#define ds2760_battery_suspend   NULL
 
#define ds2760_battery_resume   NULL
 

Functions

 module_param (cache_time, uint, 0644)
 
 MODULE_PARM_DESC (cache_time,"cache time in milliseconds")
 
 module_param (pmod_enabled, bool, 0644)
 
 MODULE_PARM_DESC (pmod_enabled,"PMOD enable bit")
 
 module_param (rated_capacity, uint, 0644)
 
 MODULE_PARM_DESC (rated_capacity,"rated battery capacity, 10*mAh or index")
 
 module_param (current_accum, uint, 0644)
 
 MODULE_PARM_DESC (current_accum,"current accumulator value")
 
 MODULE_ALIAS ("platform:ds2760-battery")
 
 module_platform_driver (ds2760_battery_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Szabolcs Gyurko <[email protected]>, ""Matt Reimer <[email protected]>, ""Anton Vorontsov <[email protected]>")
 
 MODULE_DESCRIPTION ("ds2760 battery driver")
 

Macro Definition Documentation

#define ds2760_battery_resume   NULL

Definition at line 625 of file ds2760_battery.c.

#define ds2760_battery_suspend   NULL

Definition at line 624 of file ds2760_battery.c.

#define to_ds2760_device_info (   x)
Value:
bat);

Definition at line 349 of file ds2760_battery.c.

Function Documentation

MODULE_ALIAS ( "platform:ds2760-battery"  )
MODULE_AUTHOR ( "Szabolcs Gyurko <[email protected] ,
""Matt Reimer< mreimer @vpop.net >  ,
""Anton Vorontsov< cbou @mail.ru >"   
)
MODULE_DESCRIPTION ( "ds2760 battery driver )
MODULE_LICENSE ( "GPL"  )
module_param ( cache_time  ,
uint  ,
0644   
)
module_param ( pmod_enabled  ,
bool  ,
0644   
)
module_param ( rated_capacity  ,
uint  ,
0644   
)
module_param ( current_accum  ,
uint  ,
0644   
)
MODULE_PARM_DESC ( cache_time  ,
"cache time in milliseconds"   
)
MODULE_PARM_DESC ( pmod_enabled  ,
"PMOD enable bit  
)
MODULE_PARM_DESC ( rated_capacity  ,
"rated battery  capacity,
10 *mAh or index  
)
MODULE_PARM_DESC ( current_accum  ,
"current accumulator value  
)
module_platform_driver ( ds2760_battery_driver  )