#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.
|
| 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") |
|
#define ds2760_battery_resume NULL |
#define ds2760_battery_suspend NULL |
#define to_ds2760_device_info |
( |
|
x | ) |
|
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_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 |
| ) |
|