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

Go to the source code of this file.

Data Structures

struct  ds2781_device_info
 

Macros

#define DS2781_CURRENT_UNITS   1563
 
#define DS2781_CHARGE_UNITS   6250
 
#define DS2781_USER_EEPROM_SIZE
 
#define DS2781_PARAM_EEPROM_SIZE
 

Enumerations

enum  current_types { CURRENT_NOW, CURRENT_AVG, CURRENT_NOW, CURRENT_AVG }
 

Functions

 module_platform_driver (ds2781_battery_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Renata Sayakhova <[email protected]>")
 
 MODULE_DESCRIPTION ("Maxim/Dallas DS2781 Stand-Alone Fuel Gauage IC driver")
 
 MODULE_ALIAS ("platform:ds2781-battery")
 

Macro Definition Documentation

#define DS2781_CHARGE_UNITS   6250

Definition at line 28 of file ds2781_battery.c.

#define DS2781_CURRENT_UNITS   1563

Definition at line 26 of file ds2781_battery.c.

#define DS2781_PARAM_EEPROM_SIZE
Value:
DS2781_EEPROM_BLOCK1_START + 1)

Definition at line 33 of file ds2781_battery.c.

#define DS2781_USER_EEPROM_SIZE
Value:
DS2781_EEPROM_BLOCK0_START + 1)

Definition at line 30 of file ds2781_battery.c.

Enumeration Type Documentation

Enumerator:
CURRENT_NOW 
CURRENT_AVG 
CURRENT_NOW 
CURRENT_AVG 

Definition at line 42 of file ds2781_battery.c.

Function Documentation

MODULE_ALIAS ( "platform:ds2781-battery"  )
MODULE_AUTHOR ( "Renata Sayakhova <[email protected]>"  )
MODULE_DESCRIPTION ( "Maxim/Dallas DS2781 Stand-Alone Fuel Gauage IC driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( ds2781_battery_driver  )