Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
nvec_power.c File Reference
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/err.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/delay.h>
#include "nvec.h"

Go to the source code of this file.

Data Structures

struct  nvec_power
 
struct  bat_response
 

Enumerations

enum  {
  SLOT_STATUS, VOLTAGE, TIME_REMAINING, CURRENT,
  AVERAGE_CURRENT, AVERAGING_TIME_INTERVAL, CAPACITY_REMAINING, LAST_FULL_CHARGE_CAPACITY,
  DESIGN_CAPACITY, CRITICAL_CAPACITY, TEMPERATURE, MANUFACTURER,
  MODEL, TYPE
}
 
enum  { AC, BAT }
 

Functions

 module_platform_driver (nvec_power_driver)
 
 MODULE_AUTHOR ("Ilya Petrov <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("NVEC battery and AC driver")
 
 MODULE_ALIAS ("platform:nvec-power")
 

Enumeration Type Documentation

anonymous enum
Enumerator:
SLOT_STATUS 
VOLTAGE 
TIME_REMAINING 
CURRENT 
AVERAGE_CURRENT 
AVERAGING_TIME_INTERVAL 
CAPACITY_REMAINING 
LAST_FULL_CHARGE_CAPACITY 
DESIGN_CAPACITY 
CRITICAL_CAPACITY 
TEMPERATURE 
MANUFACTURER 
MODEL 
TYPE 

Definition at line 48 of file nvec_power.c.

anonymous enum
Enumerator:
AC 
BAT 

Definition at line 65 of file nvec_power.c.

Function Documentation

MODULE_ALIAS ( "platform:nvec-power"  )
MODULE_AUTHOR ( "Ilya Petrov <[email protected]>"  )
MODULE_DESCRIPTION ( "NVEC battery and AC driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( nvec_power_driver  )