Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
power_supply_core.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/power_supply.h>
#include <linux/thermal.h>
#include "power_supply.h"

Go to the source code of this file.

Functions

 EXPORT_SYMBOL_GPL (power_supply_class)
 
void power_supply_changed (struct power_supply *psy)
 
 EXPORT_SYMBOL_GPL (power_supply_changed)
 
int power_supply_am_i_supplied (struct power_supply *psy)
 
 EXPORT_SYMBOL_GPL (power_supply_am_i_supplied)
 
int power_supply_is_system_supplied (void)
 
 EXPORT_SYMBOL_GPL (power_supply_is_system_supplied)
 
int power_supply_set_battery_charged (struct power_supply *psy)
 
 EXPORT_SYMBOL_GPL (power_supply_set_battery_charged)
 
struct power_supplypower_supply_get_by_name (char *name)
 
 EXPORT_SYMBOL_GPL (power_supply_get_by_name)
 
int power_supply_powers (struct power_supply *psy, struct device *dev)
 
 EXPORT_SYMBOL_GPL (power_supply_powers)
 
int power_supply_register (struct device *parent, struct power_supply *psy)
 
 EXPORT_SYMBOL_GPL (power_supply_register)
 
void power_supply_unregister (struct power_supply *psy)
 
 EXPORT_SYMBOL_GPL (power_supply_unregister)
 
 subsys_initcall (power_supply_class_init)
 
 module_exit (power_supply_class_exit)
 
 MODULE_DESCRIPTION ("Universal power supply monitor class")
 
 MODULE_AUTHOR ("Ian Molton <[email protected]>, ""Szabolcs Gyurko, ""Anton Vorontsov <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct classpower_supply_class
 

Function Documentation

EXPORT_SYMBOL_GPL ( power_supply_class  )
EXPORT_SYMBOL_GPL ( power_supply_changed  )
EXPORT_SYMBOL_GPL ( power_supply_am_i_supplied  )
EXPORT_SYMBOL_GPL ( power_supply_is_system_supplied  )
EXPORT_SYMBOL_GPL ( power_supply_set_battery_charged  )
EXPORT_SYMBOL_GPL ( power_supply_get_by_name  )
EXPORT_SYMBOL_GPL ( power_supply_powers  )
EXPORT_SYMBOL_GPL ( power_supply_register  )
EXPORT_SYMBOL_GPL ( power_supply_unregister  )
MODULE_AUTHOR ( "Ian Molton <[email protected] ,
""Szabolcs  Gyurko,
""Anton Vorontsov< cbou @mail.ru >"   
)
MODULE_DESCRIPTION ( "Universal power supply monitor class )
module_exit ( power_supply_class_exit  )
MODULE_LICENSE ( "GPL"  )
int power_supply_am_i_supplied ( struct power_supply psy)

Definition at line 85 of file power_supply_core.c.

void power_supply_changed ( struct power_supply psy)

Definition at line 58 of file power_supply_core.c.

struct power_supply* power_supply_get_by_name ( char name)
read

Definition at line 152 of file power_supply_core.c.

int power_supply_is_system_supplied ( void  )

Definition at line 114 of file power_supply_core.c.

int power_supply_powers ( struct power_supply psy,
struct device dev 
)

Definition at line 161 of file power_supply_core.c.

int power_supply_register ( struct device parent,
struct power_supply psy 
)

Definition at line 230 of file power_supply_core.c.

int power_supply_set_battery_charged ( struct power_supply psy)

Definition at line 133 of file power_supply_core.c.

void power_supply_unregister ( struct power_supply psy)

Definition at line 282 of file power_supply_core.c.

subsys_initcall ( power_supply_class_init  )

Variable Documentation

struct class* power_supply_class

Definition at line 24 of file power_supply_core.c.