Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ds2780_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_ds2780.h"

Go to the source code of this file.

Data Structures

struct  ds2780_device_info
 

Macros

#define DS2780_CURRENT_UNITS   1563
 
#define DS2780_CHARGE_UNITS   6250
 
#define DS2780_USER_EEPROM_SIZE
 
#define DS2780_PARAM_EEPROM_SIZE
 

Enumerations

enum  current_types { CURRENT_NOW, CURRENT_AVG, CURRENT_NOW, CURRENT_AVG }
 

Functions

 module_platform_driver (ds2780_battery_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Clifton Barnes <[email protected]>")
 
 MODULE_DESCRIPTION ("Maxim/Dallas DS2780 Stand-Alone Fuel Gauage IC driver")
 
 MODULE_ALIAS ("platform:ds2780-battery")
 

Macro Definition Documentation

#define DS2780_CHARGE_UNITS   6250

Definition at line 30 of file ds2780_battery.c.

#define DS2780_CURRENT_UNITS   1563

Definition at line 28 of file ds2780_battery.c.

#define DS2780_PARAM_EEPROM_SIZE
Value:
DS2780_EEPROM_BLOCK1_START + 1)

Definition at line 35 of file ds2780_battery.c.

#define DS2780_USER_EEPROM_SIZE
Value:
DS2780_EEPROM_BLOCK0_START + 1)

Definition at line 32 of file ds2780_battery.c.

Enumeration Type Documentation

Enumerator:
CURRENT_NOW 
CURRENT_AVG 
CURRENT_NOW 
CURRENT_AVG 

Definition at line 44 of file ds2780_battery.c.

Function Documentation

MODULE_ALIAS ( "platform:ds2780-battery"  )
MODULE_AUTHOR ( "Clifton Barnes <[email protected]>"  )
MODULE_DESCRIPTION ( "Maxim/Dallas DS2780 Stand-Alone Fuel Gauage IC driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( ds2780_battery_driver  )