Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
adp5520.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/mfd/adp5520.h>

Go to the source code of this file.

Data Structures

struct  adp5520_chip
 

Functions

int adp5520_write (struct device *dev, int reg, uint8_t val)
 
 EXPORT_SYMBOL_GPL (adp5520_write)
 
int adp5520_read (struct device *dev, int reg, uint8_t *val)
 
 EXPORT_SYMBOL_GPL (adp5520_read)
 
int adp5520_set_bits (struct device *dev, int reg, uint8_t bit_mask)
 
 EXPORT_SYMBOL_GPL (adp5520_set_bits)
 
int adp5520_clr_bits (struct device *dev, int reg, uint8_t bit_mask)
 
 EXPORT_SYMBOL_GPL (adp5520_clr_bits)
 
int adp5520_register_notifier (struct device *dev, struct notifier_block *nb, unsigned int events)
 
 EXPORT_SYMBOL_GPL (adp5520_register_notifier)
 
int adp5520_unregister_notifier (struct device *dev, struct notifier_block *nb, unsigned int events)
 
 EXPORT_SYMBOL_GPL (adp5520_unregister_notifier)
 
 MODULE_DEVICE_TABLE (i2c, adp5520_id)
 
 module_init (adp5520_init)
 
 module_exit (adp5520_exit)
 
 MODULE_AUTHOR ("Michael Hennerich <[email protected]>")
 
 MODULE_DESCRIPTION ("ADP5520(01) PMIC-MFD Driver")
 
 MODULE_LICENSE ("GPL")
 

Function Documentation

int adp5520_clr_bits ( struct device dev,
int  reg,
uint8_t  bit_mask 
)

Definition at line 122 of file adp5520.c.

int adp5520_read ( struct device dev,
int  reg,
uint8_t val 
)

Definition at line 96 of file adp5520.c.

int adp5520_register_notifier ( struct device dev,
struct notifier_block nb,
unsigned int  events 
)

Definition at line 142 of file adp5520.c.

int adp5520_set_bits ( struct device dev,
int  reg,
uint8_t  bit_mask 
)

Definition at line 102 of file adp5520.c.

int adp5520_unregister_notifier ( struct device dev,
struct notifier_block nb,
unsigned int  events 
)

Definition at line 160 of file adp5520.c.

int adp5520_write ( struct device dev,
int  reg,
uint8_t  val 
)

Definition at line 90 of file adp5520.c.

EXPORT_SYMBOL_GPL ( adp5520_write  )
EXPORT_SYMBOL_GPL ( adp5520_read  )
EXPORT_SYMBOL_GPL ( adp5520_set_bits  )
EXPORT_SYMBOL_GPL ( adp5520_clr_bits  )
EXPORT_SYMBOL_GPL ( adp5520_register_notifier  )
EXPORT_SYMBOL_GPL ( adp5520_unregister_notifier  )
MODULE_AUTHOR ( "Michael Hennerich <[email protected]>"  )
MODULE_DESCRIPTION ( "ADP5520(01) PMIC-MFD Driver"  )
MODULE_DEVICE_TABLE ( i2c  ,
adp5520_id   
)
module_exit ( adp5520_exit  )
module_init ( adp5520_init  )
MODULE_LICENSE ( "GPL"  )